예제 #1
0
 private void Start()
 {
     Spawn();
     if (audioScript)
     {
         audioScript.BackgroundMusic();
     }
 }
예제 #2
0
    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!";
    }