public void Init(GameStateMachine stateMachine, object changeStateData) { Debug.Log("Entering In MainMenu State"); _mainMenuController = new MainMenuController(); Singleton.instance.gui.viewFactory.CreateAsync <MainMenuView>("GUI/MainMenu/MainMenuView", (view) => { Singleton.instance.gui.screenFader.FadeIn(0.35f, () => { _mainMenuController.Start(view as MainMenuView); }); }); }
public void Init(GameStateMachine stateMachine) { Debug.Log("Entering In MainMenu State"); _mainMenuController = new MainMenuController(); _starscapeView = GameObject.FindObjectOfType <StarScapeView>(); if (_starscapeView == null) { Singleton.instance.gui.viewFactory.CreateAsync <StarScapeView>("MainMenu/StarScapeView", (view) => { _starscapeView = view as StarScapeView; }); } Singleton.instance.gui.viewFactory.CreateAsync <MainMenuView>("MainMenu/MainMenuView", (view) => { Singleton.instance.gui.screenFader.FadeIn(0.35f, () => { _mainMenuController.Start(view as MainMenuView); }); }); }
public void Init(Hashtable changeStateData) { _controller = new MainMenuController(); _controller.Start(onViewCreated, onChangeState); }
static void Main(string[] args) { var mm = new MainMenuController(); mm.Start(); }
public void Init(GameStateMachine stateMachine, object changeStateData) { Debug.Log("Entering In MainMenu State"); _mainMenuController = new MainMenuController(); _mainMenuController.Start(); }