Esempio n. 1
0
 public void TowerSpaceFires()
 {
     if (Game.instance.Phase1)
     {
         Game.instance.SelectedButton = this;
     }
     else
     {
         #region sound part
         PressButton(true);
         if (tower != null)
         {
             tower.StartFiring();
         }
         PlaySound playSound = GetComponent <PlaySound>();
         playSound.StartBeep();
         #endregion
     }
 }