Example #1
0
    public override void Enter(GameObject Go)
    {
        _fsm = Go.GetComponent<Sct_GameHandler>();

        //抓資料
        ArrayList ResultData = _fsm.CollectResult(_fsm.CreateLava.LavaPlayers);

        _fsm.CreateLava.DestoryAllLavas();

        //關閉環境音效
        Sct_SoundManager.Instance.EnvironmentSFX(false);
        Sct_MusicManager.Instance.EnableMusic(false);

        //跳到結算
        Sct_MainMgr.Instance.CallScene(Sct_DEFCONST.SCENE_NAME.SCORE_SCENE, ResultData);
    }
Example #2
0
    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);
    }
Example #3
0
    public override void Enter(GameObject Go)
    {
        gameUI = (Sct_GameUI)Sct_UIMgr.instance.UIControl;
        _fsm = Go.GetComponent<Sct_GameHandler>();

        //關閉系統
        _fsm.CreateWeather.RemoveAllRisk();
        _fsm.CreateFood.DestoryAllItem();
        _fsm.CreateItems.DestoryAllItem();
        _fsm.CreateLava.UnInputAllLavas();

        //關閉音樂
        Sct_MusicManager.Instance.EnableMusic(false);

        gameUI.setEndPanelVisable(true);
        gameUI.setTimeInfo((int)(_fsm.InitGameTime - _fsm.GameTimer), false);
    }
Example #4
0
    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);
    }