Beispiel #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();
 }
Beispiel #2
0
 //Pause-Resume
 public void PauseTheGame()
 {
     Time.timeScale = 0;
     CanvasProp.Show(Menu);
 }
Beispiel #3
0
 private void LevelSucces()
 {
     CanvasProp.Show(winPanel);
 }
Beispiel #4
0
 private void LevelFailed()
 {
     CanvasProp.Show(losePanel);
 }
Beispiel #5
0
 private void OnLevelStart()
 {
     levelIndex.text = "Level" + LevelManager.Instance.LevelIndex.ToString();
     CanvasProp.Show(gamePlay);
     CanvasProp.Hide(InGameBeforePanel);
 }
Beispiel #6
0
 //
 private void GameStart()
 {
     CanvasProp.Hide(MainMenuPanel);
     CanvasProp.Show(InGameBeforePanel);
 }