public void UpgradeTower() { if (manager.eventGame == GameManager.gameEvents.EVENT_OUT_OF_COMBAT && _eventTower == towerEvents.EVENT_UPGRADE) { _eventTower = towerEvents.EVENT_IDLE; print("UPGRADE"); } }
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; } }