public override void Enter(GameObject Go) { gameUI = (Sct_GameUI)Sct_UIMgr.instance.UIControl; _fsm = Go.GetComponent<Sct_GameHandler>(); //開啟控制器 foreach (KeyValuePair<int, Player> player in _fsm.CreateLava.LavaPlayers) { player.Value.LavaInput.InputEnable = true; player.Value.LavaInput.MoveEnable = true; } //開啟食物和天氣 _fsm.CreateFood.enabled = true; _fsm.CreateWeather.enabled = true; _fsm.CreateItems.enabled = true; //遊戲UI Start標誌關閉 gameUI.setStartPanelVisable(false); //撥音樂 Sct_MusicManager.Instance.ChangeMusic(Sct_DEFCONST.MUSIC_NAME.INGAME); if (PlayerPrefs.GetInt("EnableSound") == 1) Sct_MusicManager.Instance.EnableMusic(true); else Sct_MusicManager.Instance.EnableMusic(false); }
public override void Enter(GameObject Go) { gameUI = (Sct_GameUI)Sct_UIMgr.instance.UIControl; _fsm = Go.GetComponent<Sct_GameHandler>(); //設定顯示Start UI if(gameUI != null) gameUI.setStartPanelVisable(true); //暫時不播音樂 //Sct_SoundManager.Instance.EnvironmentSFX(true); Sct_MusicManager.Instance.EnableMusic(false); gameUI.setTimeInfo((int)(_fsm.InitGameTime - _fsm.GameTimer), false); }