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