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