예제 #1
0
    public override void Initialize(object[] screenParams)
    {
        base.Initialize(screenParams);
        m_PostLoadScreenId = (UI.Enums.ScreenId)screenParams[0];

        if (screenParams.Length > 1)
        {
            // check for an scene to load while in this screen
            Enums.eScene scene = (Enums.eScene)screenParams[1];

            VSEventManager.Instance.AddListener <UIEvents.AsyncSceneLoadProgressEvent>(OnLoadProgress);

            m_LoadStartTime = Time.time;
            SceneLoader.Instance.RequestSceneLoadAsync(scene);
        }
    }
예제 #2
0
 public SceneLoadedEvent(Enums.eScene scene)
 {
     LoadedScene = scene;
 }
예제 #3
0
    public void RequestSceneLoadAsync(Enums.eScene scene)
    {
        int buildIndex = (int)scene;

        mAsyncOp = SceneManager.LoadSceneAsync(buildIndex);
    }
예제 #4
0
    public void RequestSceneLoad(Enums.eScene scene)
    {
        int buildIndex = (int)scene;

        SceneManager.LoadScene(buildIndex);
    }