/// <summary> /// Event triggered when the scene has finished loading. This will dequeue all pending quest actions and triggers anyone listening to this event. /// </summary> /// <param name="scene"></param> /// <param name="mode"></param> private void OnSceneLoaded(Scene scene, LoadSceneMode mode) { DequeueActions(); OnSceneLoadedEvent?.Invoke(); UserInputs.Instance.EnableInput(); IsLoading = false; }
private static void UnitySceneManagerLoaded(Scene scene, LoadSceneMode mode) { TCScene tcScene = FindSceneInfo(scene.name); if (tcScene == null) { return; } OnSceneLoadedEvent?.Invoke(tcScene); }