Esempio n. 1
0
 internal void OnButtonClicked(JEventArgs args)
 {
     if (args.strArg.Equals("Play"))
         currentGameMode.RequestState("SampleLevelSelectionState");
     else if (args.strArg.Equals("Options"))
         Debug.Log("Options !");
 }
Esempio n. 2
0
 internal void ButtonClicked()
 {
     if (JEngine.Instance.uiManager.nbPanelInTransition == 0)
     {
         JEventArgs eventArgs = new JEventArgs();
         eventArgs.strArg = args;
         JEngine.Instance.eventManager.FireEvent(key, eventArgs);
     }
 }
Esempio n. 3
0
	internal bool FireEvent(string key, JEventArgs args)
	{
		if(_eventTable.ContainsKey(key))
		{
			_eventTable[key] (args);
			return true;
		}
		return false;
	}
Esempio n. 4
0
 internal bool FireEvent(string key, JEventArgs args)
 {
     if (_eventTable.ContainsKey(key))
     {
         _eventTable[key] (args);
         return(true);
     }
     return(false);
 }
Esempio n. 5
0
	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 !");
	}
Esempio n. 6
0
    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 !");
    }
Esempio n. 7
0
 internal void OnButtonClicked(JEventArgs args)
 {
     if (args.strArg.Equals("Play"))
     {
         currentGameMode.RequestState("SampleLevelSelectionState");
     }
     else if (args.strArg.Equals("Options"))
     {
         Debug.Log("Options !");
     }
 }
Esempio n. 8
0
	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");
		}
	}
Esempio n. 9
0
 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");
     }
 }
Esempio n. 10
0
 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;
     }
 }
Esempio n. 11
0
	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;
		}
	}
Esempio n. 12
0
 internal void OnLevelSelection(JEventArgs args)
 {
     _levelSelected = args.strArg;
     _levelPanel.SetSelectedLevel(_levelSelected);
 }
Esempio n. 13
0
 internal void PointChange(JEventArgs a_args)
 {
     point += (int)a_args.floatArg;
     _playHUDPanel.SetPointText(point.ToString());
 }
Esempio n. 14
0
	internal void OnLevelSelection(JEventArgs args)
	{
		_levelSelected = args.strArg;
		_levelPanel.SetSelectedLevel (_levelSelected);
	}
Esempio n. 15
0
	internal void OnPlayClicked(JEventArgs args)
	{
		currentGameMode.RequestState ("SelectLevelState");
	}
Esempio n. 16
0
	private void GoToMainMenu(JEventArgs args)
	{
		Time.timeScale = 1f;
		JEngine.Instance.gameManager.changeGameMode ("MenuGameMode");
	}
Esempio n. 17
0
	internal void PointChange(JEventArgs a_args)
	{
		point += (int)a_args.floatArg;
		_playHUDPanel.SetPointText (point.ToString());
	}
Esempio n. 18
0
 internal void OnLevelLoad(JEventArgs args)
 {
     currentGameMode.RequestState("GameFPSState");
 }
Esempio n. 19
0
	internal void OnLevelLoad(JEventArgs args)
	{
		currentGameMode.RequestState ("GameFPSState");
	}
Esempio n. 20
0
 void OnNextLevel(JEventArgs a_arg)
 {
     JEngine.Instance.gameManager.currentLevelID++;
     JEngine.Instance.gameManager.changeGameMode ("CellGameMode");
 }
Esempio n. 21
0
 private void GoToMainMenu(JEventArgs args)
 {
     Time.timeScale = 1f;
     JEngine.Instance.gameManager.changeGameMode("MenuGameMode");
 }
Esempio n. 22
0
 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");
 }
 internal void OnLevelSelected(JEventArgs args)
 {
     Debug.Log("Level selection: " + args.strArg);
 }
 internal void Back(JEventArgs args)
 {
     currentGameMode.RequestState("SampleMenuState");
 }
Esempio n. 27
0
 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;
     }
 }
Esempio n. 28
0
 internal void Quit(JEventArgs args)
 {
     Application.Quit ();
 }
Esempio n. 29
0
 void OnGameOver(JEventArgs a_arg)
 {
     JEngine.Instance.audioManager.PlaySound2D(Death);
     Time.timeScale = 0f;
     _resultPanel.DisplayPopup (false);
 }
Esempio n. 30
0
 internal void ContinueGame(JEventArgs args)
 {
     JEngine.Instance.gameManager.changeGameMode ("CellGameMode");
 }
Esempio n. 31
0
 void OnRestart(JEventArgs a_arg)
 {
     JEngine.Instance.gameManager.deathNb++;
     _resultPanel.SetDeathText (JEngine.Instance.gameManager.deathNb.ToString());
     JEngine.Instance.gameManager.changeGameMode ("CellGameMode");
 }
Esempio n. 32
0
 internal void OnPlayClicked(JEventArgs args)
 {
     currentGameMode.RequestState("SelectLevelState");
 }