internal void OnButtonClicked(JEventArgs args) { if (args.strArg.Equals("Play")) currentGameMode.RequestState("SampleLevelSelectionState"); else if (args.strArg.Equals("Options")) Debug.Log("Options !"); }
internal void ButtonClicked() { if (JEngine.Instance.uiManager.nbPanelInTransition == 0) { JEventArgs eventArgs = new JEventArgs(); eventArgs.strArg = args; JEngine.Instance.eventManager.FireEvent(key, eventArgs); } }
internal bool FireEvent(string key, JEventArgs args) { if(_eventTable.ContainsKey(key)) { _eventTable[key] (args); return true; } return false; }
internal bool FireEvent(string key, JEventArgs args) { if (_eventTable.ContainsKey(key)) { _eventTable[key] (args); return(true); } return(false); }
public virtual void OnButtonClick() { if (JEngine.Instance.uiManager.nbPanelInTransition == 0) { JEventArgs eventArgs = new JEventArgs(); eventArgs.strArg = args; JEngine.Instance.eventManager.FireEvent(key, eventArgs); } // Debug.Log ("OnButtonClick !"); }
internal void OnButtonClicked(JEventArgs args) { if (args.strArg.Equals("Play")) { currentGameMode.RequestState("SampleLevelSelectionState"); } else if (args.strArg.Equals("Options")) { Debug.Log("Options !"); } }
internal void OnPlayClicked(JEventArgs args) { if (_levelSelected != "") { JEngine.Instance.gameManager.SetParameter ("LevelName", (System.Object)_levelSelected); JEngine.Instance.gameManager.changeGameMode ("FPSGameMode"); } else { Debug.LogError ("TODO -> Display error: Select a Level"); } }
internal void OnPlayClicked(JEventArgs args) { if (_levelSelected != "") { JEngine.Instance.gameManager.SetParameter("LevelName", (System.Object)_levelSelected); JEngine.Instance.gameManager.changeGameMode("FPSGameMode"); } else { Debug.LogError("TODO -> Display error: Select a Level"); } }
internal void PauseEvent(JEventArgs a_args) { if (currentGameMode.isPaused) { JEngine.Instance.uiManager.ShowPanel("PausePanel"); Time.timeScale = 0f; } else { JEngine.Instance.uiManager.HidePanel("PausePanel"); Time.timeScale = 1f; } }
internal void PauseEvent(JEventArgs a_args) { if(currentGameMode.isPaused) { JEngine.Instance.uiManager.ShowPanel ("PausePanel"); Time.timeScale = 0f; } else { JEngine.Instance.uiManager.HidePanel ("PausePanel"); Time.timeScale = 1f; } }
internal void OnLevelSelection(JEventArgs args) { _levelSelected = args.strArg; _levelPanel.SetSelectedLevel(_levelSelected); }
internal void PointChange(JEventArgs a_args) { point += (int)a_args.floatArg; _playHUDPanel.SetPointText(point.ToString()); }
internal void OnLevelSelection(JEventArgs args) { _levelSelected = args.strArg; _levelPanel.SetSelectedLevel (_levelSelected); }
internal void OnPlayClicked(JEventArgs args) { currentGameMode.RequestState ("SelectLevelState"); }
private void GoToMainMenu(JEventArgs args) { Time.timeScale = 1f; JEngine.Instance.gameManager.changeGameMode ("MenuGameMode"); }
internal void PointChange(JEventArgs a_args) { point += (int)a_args.floatArg; _playHUDPanel.SetPointText (point.ToString()); }
internal void OnLevelLoad(JEventArgs args) { currentGameMode.RequestState("GameFPSState"); }
internal void OnLevelLoad(JEventArgs args) { currentGameMode.RequestState ("GameFPSState"); }
void OnNextLevel(JEventArgs a_arg) { JEngine.Instance.gameManager.currentLevelID++; JEngine.Instance.gameManager.changeGameMode ("CellGameMode"); }
private void GoToMainMenu(JEventArgs args) { Time.timeScale = 1f; JEngine.Instance.gameManager.changeGameMode("MenuGameMode"); }
void BackToMenu(JEventArgs a_arg) { JEngine.Instance.gameManager.currentLevelID = 1; JEngine.Instance.gameManager.deathNb = 0; JEngine.Instance.gameManager.changeGameMode ("MenuGameMode"); }
internal void OnLevelSelected(JEventArgs args) { Debug.Log("Level selection: " + args.strArg); }
internal void Back(JEventArgs args) { currentGameMode.RequestState("SampleMenuState"); }
void OnWin(JEventArgs a_arg) { JEngine.Instance.audioManager.PlaySound2D(Win); Time.timeScale = 0f; _resultPanel.DisplayPopup (true); switch(JEngine.Instance.gameManager.currentLevelID) { case 1: _resultPanel.SetWinText("Je me suis réveillée avant toi, rejoins moi dans l'aorte !"); break; case 2: _resultPanel.SetWinText("Je suis allée chercher du pain dans l'estomac !"); break; case 3: _resultPanel.SetWinText("Je suis allée profiter de la vue dans les globes occulaires !"); break; case 4: _resultPanel.SetWinText("Je suis allée boire un verre dans le foie !"); break; case 5: _resultPanel.SetWinText("Mon chéri te voilà, allons faire un tour dans le coeur !"); break; } }
internal void Quit(JEventArgs args) { Application.Quit (); }
void OnGameOver(JEventArgs a_arg) { JEngine.Instance.audioManager.PlaySound2D(Death); Time.timeScale = 0f; _resultPanel.DisplayPopup (false); }
internal void ContinueGame(JEventArgs args) { JEngine.Instance.gameManager.changeGameMode ("CellGameMode"); }
void OnRestart(JEventArgs a_arg) { JEngine.Instance.gameManager.deathNb++; _resultPanel.SetDeathText (JEngine.Instance.gameManager.deathNb.ToString()); JEngine.Instance.gameManager.changeGameMode ("CellGameMode"); }
internal void OnPlayClicked(JEventArgs args) { currentGameMode.RequestState("SelectLevelState"); }