Hello everyone,
I am trying to do the following:
Player one sets a land mine. It flashes blue to him, and red to player two.
Player two sets a land mine. It flashes blue to him, and red to player one.
There are actually a lot more object in my project that need to be shown differently between the players, this just seems to be the most simple.
Any help is greatly appreciated.
im just throwin an idea out there… not sure if this will help ya out or not …
if(networkView.isMine){
// do some blue material / coding logic here ....
}
else{
// do some red material / coding logic here....
}
having something like this in Awake or Start might help you out? Again, jus throwin ideas out there for you.
Yeah, something like that could work. I would have to set up a global vars or something to store myColor, theirColor, etc… then pass that to everything that needs color information.
Anyone else have any thoughts?
You can do it like willc suggested but have the mine a variable of it’s own like if(team ==1) then blabla. This should be more reliable depending on your code because sometimes the entity can belong to your network viewer but not be yours in the game.