コード例 #1
0
 public UnityEngine.Object GetObject()
 {
     if (!(this.m_Object != null))
     {
         if (this.m_LoadComplete)
         {
             return(this.m_Object);
         }
         if (EventTriggerEditorUtil._OnGetAsset != null)
         {
             this.m_Object = EventTriggerEditorUtil._OnGetAsset(this.m_AssetPath, typeof(UnityEngine.Object));
         }
     }
     return(this.m_Object);
 }
コード例 #2
0
 public void CreateBundle()
 {
     if (!string.IsNullOrEmpty(this.m_URL))
     {
         WWWItem wWWItem = Holder.TryGetOrCreateBundle(this.m_URL, null);
         wWWItem.SetItemType(ItemType.USER_ASSETB);
         wWWItem.SetCallback(new PostProcPerItem(this._OnCompleteDownload), null);
         TsImmortal.bundleService.RequestDownloadCoroutine(wWWItem, DownGroup.RUNTIME, this.UnLoad);
     }
     else
     {
         if (EventTriggerEditorUtil._OnGetAsset != null)
         {
             this.m_Object = EventTriggerEditorUtil._OnGetAsset(this.m_AssetPath, typeof(UnityEngine.Object));
             if (this.m_Object != null)
             {
                 this.m_LoadComplete = true;
             }
         }
         this.m_DownComplete = true;
     }
 }