Beispiel #1
0
        private IEnumerator WinScreenAndMenu(PlayerManager.Team winningTeam)
        {
            WinScreen screen = Instantiate(winScreenPrefab, Vector3.zero, Quaternion.identity);

            screen.DisplayWinner(winningTeam);

            AkSoundEngine.SetSwitch("Music_Switch", "Combat_End", GameObject.Find("Round"));

            yield return(new WaitForSeconds(winScreenDisplayTime));

            LoadingScreen.Instance.LoadScene(menuSceneIndex);
        }