Exemplo n.º 1
0
    private void CreateUiForms()
    {
        SceneData sceneData = _scenesData[UIConsts.SCENE_NAMES[(int)_currentScene]];

        if (sceneData.Menu != UIConsts.FORM_ID.NONE)
        {
            _currentBackgroundMenu = sceneData.Menu;
        }
        _uiCreator.CreateUIs(sceneData);
        ShowBackgroundMenu();
        if (sceneData.PreloadSceneName != UIConsts.SCENE_ID.NONE &&
            !_scenePreloadersOperations.ContainsKey(sceneData.PreloadSceneName))
        {
            GameManager.Instance.StartCoroutine(PreloadSceneAsync(sceneData.PreloadSceneName));
            //Debug.Log("Preloading " + UIConsts.SCENE_NAMES[(int)sceneData.PreloadSceneName] + " scene in background.");
        }
    }