public void EnableMenu(TowerBase towerBase)
        {
            if (towerBase.tower.gameObject.activeInHierarchy)
            {
                SetActiveMenu(TowerBuildType.Sell);
            }
            else
            {
                SetActiveMenu(TowerBuildType.Build);
            }

            currentTowerBase = towerBase;
            gameObject.transform.position = towerBase.transform.position;
            gameObject.SetActive(true);
        }
Beispiel #2
0
 public void EnableMenu(TowerBase towerBase)
 {
     currentTowerBase = towerBase;
     gameObject.transform.position = towerBase.transform.position;
     gameObject.SetActive(true);
 }