Color detection

Hey guys!

I’m looking for a way for my character to detect colors?

Example:

If my character is blue, he has to pass through blue in order to continue and if he passes through red, he would die.

I would appreciate any help!

Maybr apply some tags instead with blue or red. Then use “actor has tags” to a branch.