I’m trying to get the player to change color when you click the button.
But the other players do not see the texture changed!
In’ve Player NetworkView.
My code:
function OnGUI(){
if(GUI.Button(Rect(300,10,100,30),"ComRPC")){
networkView.RPC ("MudarCor", RPCMode.All);
}
}
@RPC
function MudarCor (){
renderer.material.color = Color.red;
}