Пример #1
0
 void OnMouseDown()
 {
     if (FightManager.InFight)
     {
         if (Selected == this)
         {
             Selected = null;
             FightManager.HideOptions();
         }
         else
         {
             if (Selected == null)
             {
                 Selected = this;
                 FightManager.ShowOptions(Selected);
             }
         }
     }
 }