Hello everyone,
I am using photon for making my game, I want the players to be able to do something with only objects that have the same tag as the player game object, can I achieve that? something like that if (gameObject.tag == theplayerprefab.tag){ //do something }
something like that :
if (gameObject.tag == theplayerprefab.tag){
//do something
}
Because I will have 2 players in the scene, blue and red, the red should control the red components while the blue controlls the blue ones. But, each component can change color (from blue to red or red to blue) so it means change the owner.
Thanks ^^.