Esempio n. 1
0
 // Methods
 private void DefaultLayout()
 {
     CanvasProp.Hide(losePanel);
     CanvasProp.Hide(winPanel);
     CanvasProp.Hide(gamePlay);
     CanvasProp.Hide(Menu);
     CanvasProp.Show(InGameBeforePanel);
     Time.timeScale = 1;
     ResetValues();
 }
Esempio n. 2
0
 //Pause-Resume
 public void PauseTheGame()
 {
     Time.timeScale = 0;
     CanvasProp.Show(Menu);
 }
Esempio n. 3
0
 private void LevelSucces()
 {
     CanvasProp.Show(winPanel);
 }
Esempio n. 4
0
 private void LevelFailed()
 {
     CanvasProp.Show(losePanel);
 }
Esempio n. 5
0
 private void OnLevelStart()
 {
     levelIndex.text = "Level" + LevelManager.Instance.LevelIndex.ToString();
     CanvasProp.Show(gamePlay);
     CanvasProp.Hide(InGameBeforePanel);
 }
Esempio n. 6
0
 //
 private void GameStart()
 {
     CanvasProp.Hide(MainMenuPanel);
     CanvasProp.Show(InGameBeforePanel);
 }