Exemple #1
0
 public void ButtonClick()
 {
     //it's funny because it's true
     if (MouseInput._canbuild != false)
     {
         MouseInput.DestroyBuildable();
     }
     if (MouseInput._canbuild == false)
     {
         _enemyScript = enemy.GetComponent <Enemy>();
         _enemyScript._enemyIndexNumber = _enemyIndex;
         _audioManager.PlayAudioClip(_enemyIndex);
         MouseInput.TurnOnPlaceMode(enemy);
     }
 }