Assets/Scripts/System/Level/LevelEventManager.cs
/// <summary>
/// Unsubscribes our listeners from the EventManager whenever the manager is disabled / destroyed.
/// </summary>
Unsubscribes our listeners from the EventManager whenever the manager is disabled / destroyed.
Unsubscribes our listeners from the EventManager whenever the manager is disabled / destroyed .
private void OnDisable()
    {
        EventManager.StopListening("LevelEvent_LoadLevel", LoadLevel);
        EventManager.StopListening("LevelEvent_EnterIngameState", EnterIngameState);
        EventManager.StopListening("LevelEvent_EnterCutsceneState", EnterCutsceneState);
        EventManager.StopListening("LevelEvent_CompleteLevel", CompleteLevel);
    }
private void OnDisable ( ) { EventManager . StopListening ( " " , LoadLevel ) ; EventManager . StopListening ( " " , EnterIngameState ) ; EventManager . StopListening ( " " , EnterCutsceneState ) ; EventManager . StopListening ( " " , CompleteLevel ) ; }
Unsubscribes our listeners from the EventManager whenever the manager is disabled / destroyed.
Unsubscribes our listeners from the EventManager whenever the manager is disabled / destroyed .