private void InitializeInPlayMode() { loadingGraphics = loadingGraphicsConcrete; InitializeInterfaceWithComponent <SceneController, ISceneController>(out sceneController); DontDestroyOnLoad(this); uiSystem.Start(); AfterInitializationEvent?.Invoke(); }
private void Awake() { updateDelegates = new UpdateDelegate[(int)SceneState.Count]; updateDelegates[(int)SceneState.Reset] = UpdateSceneReset; updateDelegates[(int)SceneState.Preload] = UpdateScenePreload; updateDelegates[(int)SceneState.Load] = UpdateSceneLoad; updateDelegates[(int)SceneState.Unload] = UpdateSceneUnload; updateDelegates[(int)SceneState.Postload] = UpdateScenePostload; updateDelegates[(int)SceneState.Ready] = UpdateSceneReady; updateDelegates[(int)SceneState.Run] = UpdateSceneRun; nextSceneName = startSceneName; sceneState = SceneState.Run; loadingGraphics = Main.LoadingGraphics; }