Пример #1
0
 void OnDownloadBtnClick(GameObject _btn)
 {
     Debug.Log("开始下载");
     if (m_Assetisdownloaded)
     {
         NotifCenter.GetNotice.PostDispatchEvent(NotifEventKey.ARKIT_PLAY);
         NotifCenter.GetNotice.PostDispatchEvent(NotifEventKey.AB_INSTANCE, new ABInstaniateHelper()
         {
             m_ABName = m_CurData
         });
         //进入场景
         UIManager.Instance.JumpToARScene();
     }
     else
     {
         Debug.Log("下载AB包:" + m_Pageitem.assetName + "." + m_Pageitem.type.ToLower());
         UIManager.Instance.StartListItemABDownload(this);
         GetObject.AsyncGetObject("anywhere-v-1", m_Pageitem.assetName + "." + m_Pageitem.type.ToLower());
     }
 }