Пример #1
0
 public void UpgradeTower()
 {
     if (manager.eventGame == GameManager.gameEvents.EVENT_OUT_OF_COMBAT && _eventTower == towerEvents.EVENT_UPGRADE)
     {
         _eventTower = towerEvents.EVENT_IDLE;
         print("UPGRADE");
     }
 }
Пример #2
0
 public void SetPosition(Vector3 _position)
 {
     if (manager.eventGame == GameManager.gameEvents.EVENT_OUT_OF_COMBAT && _eventTower == towerEvents.EVENT_MOVE)
     {
         selectedTower.transform.position = _position;
         selectedTower = null;
         _eventTower   = towerEvents.EVENT_IDLE;
     }
 }