Пример #1
0
 void ConstructConfirmationCount(ConstructionBehaviour script)
 {
     if (script.GetType() == typeof(TowerBehaviour))
     {
         if (_towerPool.Available <= 0)
         {
             _gameManager.Input.SetVisibilityTowerButton(false);
         }
     }
     else   // WallBehaviour
     {
         if (_wallPool.Available <= 0)
         {
             _gameManager.Input.SetVisibilityWallButton(false);
         }
     }
 }