I have a game object that has a network view and a script with a static variable. I use an RPC function to change that static variable to true. However, it is not true for all players in the game, just me.
networkView.RPC(“StartGame1”, RPCMode.AllBuffered); // called with a gui button
@RPC
function StartGame1()
{
var temp : GameObject;
temp = gameObject.Find("GameFeatures");
temp.GetComponent(Features).StartGame = true;
}
How do I make it so that when this function is called, it is called on all players in the game?