public override void _Ready() { Game = this; activeActors = new List <Actor>(); menuManager = new MenuManager(this); menuManager.SwitchMenu(MenuManager.Menus.Start); jukeBox = new JukeBox(this); jukeBox.PlaySong(); }
private IEnumerator <float> _PlayGame() { // Wait a few seconds yield return(Timing.WaitForSeconds(1f)); // Start playing the song jukebox.PlaySong(); // Starts the countdown and waits until it's done yield return(Timing.WaitUntilDone(Timing.RunCoroutine(uiManager._StartCountdown()))); // Enables spawning spawnManager.spawnEnabled = true; // Enable movement player.movementEnabled = true; }