public void LoadObject(string _Paht) { if (0 < _Paht.Length) { if (this.MainObject) { UnityEngine.Object.Destroy(this.MainObject); this.MainObject = new GameObject("MainObject"); } this.AniList.Clear(); this.AniObj.Clear(); WBundleLoader.Load(this.MainObject, _Paht); this.bPathLoad = false; } }
private void Update() { if (WBundleLoader.IsComplete(base.gameObject)) { this.RegistAniList(); } if (Input.GetKeyDown(KeyCode.Escape)) { this.URL_PATH = string.Empty; FTPTreeGUI.isVisible = (this.bPathLoad = false); this.InitCamera(); } if (Input.GetKeyUp(KeyCode.Insert)) { this.bPathLoad = !this.bPathLoad; } if (Input.GetKeyUp(KeyCode.Home)) { FTPTreeGUI.isVisible = !FTPTreeGUI.isVisible; } }