void LateUpdate() //late update to stop wierd interactions with action panel clicks { if (PlayerControlSwitch.GetPlayerID() == player.team) { GetClick(); } }
private void Update() { if (PlayerControlSwitch.GetPlayerID() == team) //only execute if tester is in control of this player { GetClick(); } }