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