Пример #1
0
    public void LoadScene(string sceneName)
    {
        var param = new SceneParam();

        param.PutParam("loading_scene", sceneName);
        SceneFlowManager.PushCurrentScene();
        SceneFlowManager.LoadScene("Loading", sceneParam: param);
    }
Пример #2
0
    public void LoadPreviousScene()
    {
        var preScene = SceneFlowManager.PopPreviousScene();

        if (preScene == string.Empty)
        {
            Debug.Log("No previous scene");
            return;
        }

        var param = new SceneParam();

        param.PutParam("loading_scene", preScene);

        SceneFlowManager.LoadScene("Loading", sceneParam: param);
    }