// Use this for initialization IEnumerator Start() { GameObject obj2 = CResources.Load <GameObject>("A/Cube"); GameObject obj = CResources.Instantiate(obj2); CResources.Destroy(obj); yield break; }
/// <summary> /// 销毁窗口 /// </summary> virtual public void Destroy() { //卸载 if (Transform) { CResources.Destroy(this.Transform); } // foreach (var subwin in this.subWindowsDictionary.Values) { subwin.Destroy(); } IsLoad = false; //卸载窗口 CResources.UnloadAsset(resourcePath); }