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; }
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; }