Hello !
I need a code for loading the next scene in an if the condition satisfied loading nex scene is not a problem but I can not set my condition. The condition is if color all game objects wit tag “Cube” do something.
if(all game objects with tag "Cube".color == "yellow") {
DO SOMETHING
}
Also you didn’t give a lot of information about where your .color comes from
so I assume you have another script on the cube with that property.
You just have to replace “YOURCOLORSCRIPT” with the script name.