internal virtual void Enter() { //Get current GameMode currentGameMode = JEngine.Instance.gameManager.GetCurrentGameMode; //Hide all Panels JEngine.Instance.uiManager.HideAllPanels(); //Display requested Panels foreach(string panelName in panelToDisplay) { JEngine.Instance.uiManager.ShowPanel(panelName); } //Register Events RegisterForEvents(); }
internal virtual void Enter() { //Get current GameMode currentGameMode = JEngine.Instance.gameManager.GetCurrentGameMode; //Hide all Panels JEngine.Instance.uiManager.HideAllPanels(); //Display requested Panels foreach (string panelName in panelToDisplay) { JEngine.Instance.uiManager.ShowPanel(panelName); } //Register Events RegisterForEvents(); }
internal void registerGameMode(JGameMode a_gameMode) { _currentGameMode = a_gameMode; _currentGameMode.Enter(); }