Exemplo n.º 1
0
    void SwitchState(ESceneState new_state)
    {
        if (scene_load_state.CompareState(new_state))
        {
            return;
        }

        scene_load_state.SetState(new_state);
        scene_load_state.PerformAction();
    }
Exemplo n.º 2
0
    public void SwitchSceneState(ESceneState state)
    {
        switch (state)
        {
        case ESceneState.E_SCENE_STATE_GAME:
        {
            SetSceneState(new GameSceneState(this));
        }
        break;

        case ESceneState.E_SCENE_STATE_LOGIN:
        {
            SetSceneState(new LoginSceneState(this));
        }
        break;
        }
    }
 public virtual void ChangeStete(ESceneState eSceneState)
 {
     Debug.Log(sceneObjects[(int)eSceneState].GetSceneName());
     SceneManager.LoadScene(sceneObjects[(int)eSceneState].GetSceneName());
 }
Exemplo n.º 4
0
 public BaseSceneState(SceneController controller)
 {
     m_controller = controller;
     m_eState     = ESceneState.E_SCENE_STATE_MAIN_MENU;
 }
Exemplo n.º 5
0
 public BaseSceneState(SceneController controller)
 {
     m_controller = controller;
     m_eState     = ESceneState.E_SCENE_STATE_LOGIN;
 }