示例#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);
    }