Ejemplo n.º 1
0
    public static SceneStateBase CreateSceneState(string sceneName)
    {
        SceneStateBase sceneState = null;

        switch (sceneName)
        {
        case GlobalDefine.LAUNCH_SCENE:
            sceneState = new LaunchSceneState();
            break;

        case GlobalDefine.MENU_SCENE:
            sceneState = new MainMenuSceneState();
            break;

        case GlobalDefine.LEVEL_SCENE_1:
            sceneState = new Level1_SceneState();
            break;
        }

        return(sceneState);
    }
Ejemplo n.º 2
0
 public void OptionsButtonPressed()
 {
     state = MainMenuSceneState.Options;
     OptionsPanel.SetActive(true);
     InstructionsPanel.SetActive(false);
 }
Ejemplo n.º 3
0
    void Awake()
    {
        state = MainMenuSceneState.Main;

        AnimateLogotype();
    }