Exemplo n.º 1
0
 public UnityAssetLoadTask(Resource_Assetbundle _res_assetbundle, String _asset_name, Type _type, Predicate <Boolean, Resource_Assetbundle, UnityEngine.Object> _callback)
 {
     m_res_assetbundle = _res_assetbundle;
     m_asset_name      = _asset_name;
     m_callback        = _callback;
     m_asset_type      = _type;
     m_res_assetbundle.Retain();
 }
Exemplo n.º 2
0
 public UnitySceneLoadTask(Resource_Assetbundle _asset_data, String _scene_name, Action <Boolean> _callback)
 {
     m_resource   = _asset_data;
     m_scene_name = _scene_name;
     m_callback   = _callback;
     if (_asset_data.State == ResourceState.Error)
     {
         throw new Utility.ExceptionEx("");
     }
     m_resource.Retain();
 }