// Start is called before the first frame update void Start() { themeMusic.Stop(); player = FindObjectOfType <PlayerController>(); // Calls the OnIntroFinished event when the player finishes their walk in player.OnPlayerFinishWalkIn += () => OnIntroFinished?.Invoke(); // Ends the game when the player dies player.OnPlayerDeath += EndGame; }
public static void IntroFinished() { IsPlayerDead = false; IsPlayingIntro = false; OnIntroFinished?.Invoke(); }
public static void EmitIntroFinished() { OnIntroFinished?.Invoke(); }