コード例 #1
0
 void Awake()
 {
     CanRestart      = false;
     instance        = this;
     button          = GetComponent <Button>();
     nextWaveTextTMP = transform.Find("RestartWaveText").gameObject.GetComponent <TextMeshProUGUI>();
 }
コード例 #2
0
ファイル: TowerAI.cs プロジェクト: ChickoonLord/TowerDefense
 public void Die()
 {
     if (tower.price >= 120 * DifficultyManager.localDifficulty)
     {
         RestartWaveButton.GainRestartWave();
     }
     Destroy(gameObject);
     AudioManager.Play_Static("Break");
 }