/// <summary> /// Emits the level loaded signal /// </summary> public void ProcessLevelLoaded() { /** * Note: OnLevelWasLoaded fires twice when used with objects using DontDestroyOnLoad() * eDriven Framework game object is one of such objects, so we have to make a check here * */ if (_levelId == Application.loadedLevel) { return; } _levelId = Application.loadedLevel; if (LevelLoadedSignal.Connected) { LevelLoadedSignal.Emit(); } }
/// <summary> /// Emits the level loaded signal /// </summary> public void ProcessLevelLoaded() { LevelLoadedSignal.Emit(); }