public void GameOver(bool forced) { int g = GameOverCheck(); if (g != -1 || forced) { isOver = true; if (g == 1) { Debug.Log("You Win"); } else { Debug.Log("You Lost"); } this.gameObject.SetActive(false); MidGameUI.SetActive(false); StartGameUI.SetActive(true); PauseGameUI.SetActive(false); camera.StartIt(); camera.GameStart(); isPaused = false; } }
public StartGameUIConfig() { prefab_Path = "StartGameUI"; View = new StartGameUI(); Ctrl = new StartGameUICtrl(); Model = new StartGameUIModel(); layer = ENUM_UILayer.Normal; InitConfig(); }