Ejemplo n.º 1
0
        public void InitUnloadData(
            string address,
            string path,
            OnSceneLoadComplete complete,
            OnSceneLoadProgress progress,
            SystemObject userData)
        {
            this.address     = address;
            this.scenePath   = path;
            this.sceneName   = Path.GetFileNameWithoutExtension(path);
            completeCallback = complete;
            progressCallback = progress;
            this.userData    = userData;

            handler = new SceneHandler(address, sceneName, scenePath);
            state   = SceneLoaderDataState.Unload;
        }
Ejemplo n.º 2
0
        public void InitLoadData(
            string address,
            string path,
            OnSceneLoadComplete complete,
            OnSceneLoadProgress progress,
            LoadSceneMode sceneMode,
            bool isActive,
            SystemObject userData)
        {
            this.address            = address;
            this.scenePath          = path;
            this.sceneName          = Path.GetFileNameWithoutExtension(path);
            completeCallback        = complete;
            progressCallback        = progress;
            this.sceneMode          = sceneMode;
            this.isActiveWhenLoaded = isActive;
            this.userData           = userData;

            handler = new SceneHandler(address, sceneName, scenePath);
            state   = SceneLoaderDataState.Load;
        }