Exemple #1
0
    // 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();
 }
Exemple #3
0
 public static void EmitIntroFinished()
 {
     OnIntroFinished?.Invoke();
 }