Example #1
0
 void OnMouseDown()
 {
     if (GameController.instance.gameState == GameController.GameState.Play)
     {
         playerController.SwitchObject(GetComponent <Transform>());
         PlaySelectedAnim();
     }
 }