예제 #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();
     }
 }