void Awake() { CanRestart = false; instance = this; button = GetComponent <Button>(); nextWaveTextTMP = transform.Find("RestartWaveText").gameObject.GetComponent <TextMeshProUGUI>(); }
public void Die() { if (tower.price >= 120 * DifficultyManager.localDifficulty) { RestartWaveButton.GainRestartWave(); } Destroy(gameObject); AudioManager.Play_Static("Break"); }