private void OnLoadSceneComplete(SceneName sceneName) { views = AppScene.appView; controllers = AppScene.appController; Initialize(); StartApp(); switch (sceneName) { case SceneName.Main: GetSystem <HistorySystem>().Generate(); GetSystem <MissionsSystem>().Generate(); break; } }
public virtual void Initialize(AppController controller, Application app) { this.Controller = controller; this.application = app; IsInitialized = true; }
protected override void ReleaseReferences() { views = null; controller = null; _instance = null; }