private void Start() { Spawn(); if (audioScript) { audioScript.BackgroundMusic(); } }
public void EnableWinPanel(bool enable, Player winner) { gameObject.SetActive(enable); if (enable) { audioController.PlayClip(winClip); audioController.BackgroundMusic(false); } if (winner == null) { return; } winnerText.text = winner.name + " won!"; }