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