Ejemplo n.º 1
0
    private Flow CreateFlow(GV.SCENENAMES _flow)
    {
        Flow flow;

        switch (_flow)
        {
        case GV.SCENENAMES.StartScene:
            flow = new StartSceneFlow();
            break;

        case GV.SCENENAMES.MainMenu:
            flow = new MainMenuFlow();
            break;

        case GV.SCENENAMES.GameScene:
            flow = new GameFlow();
            break;

        default:
            flow = null;
            break;
        }

        if (flow != null)
        {
            SceneManager.Instance.LoadScene(_flow.ToString(), SceneLoaded);
        }

        return(flow);
    }
Ejemplo n.º 2
0
    private Flow CreateFlow(GV.SCENENAMES _flow)
    {
        Flow flow;


        switch (_flow)
        {
        case GV.SCENENAMES.MainEntryScene:
            flow = new MainEntryFlow();
            break;

        case GV.SCENENAMES.MainMenu:
            flow = new MainMenuFlow();
            break;

        case GV.SCENENAMES.MainScene:
            flow = new MainSceneFlow();
            break;

        case GV.SCENENAMES.BattleScene:
            flow = new BattleFlow();
            break;

        case GV.SCENENAMES.MacroScene:
            flow = new MacroSceneFlow();
            break;

        default:
            flow = new MainSceneFlow();
            break;
        }

        if (_flow != GV.SCENENAMES.MainEntryScene)
        {
            SceneManager.Instance.LoadScene(_flow.ToString(), SceneLoaded);
        }

        return(flow);
    }