public virtual void OnLoadDependencyAsset(LoadResourceAgent agent, string dependencyAssetName, object dependencyAsset)
 {
     m_DependencyAssets.Add(dependencyAsset);
 }
            public void AddLoadResourceAgentHelper(ILoadResourceAgentHelper helper)
            {
                LoadResourceAgent agent = new LoadResourceAgent(loadResourceAgentHelper, resourceHelper, m_ResourcePool, this, readOnlyPath);

                m_TaskPool.AddAgent(agent);
            }
 public virtual void OnLoadAssetFailure(LoadResourceAgent agent, LoadResourceStatus status, string errorMessage)
 {
 }
 public virtual void OnLoadAssetUpdate(LoadResourceAgent agent, LoadResourceProgress type, float progress)
 {
 }
 public void LoadMain(LoadResourceAgent agent, ResourceObject resourceObject)
 {
     m_ResourceObject = resourceObject;
     agent.Helper.LoadAsset(resourceObject.Target, AssetName, AssetType, IsScene);
 }
 public virtual void OnLoadAssetSuccess(LoadResourceAgent agent, object asset, float duration)
 {
 }
 public virtual void OnLoadDependencyAsset(LoadResourceAgent agent, dependencyAsset)
 {
     m_DependencyAssets.Add(dependencyAsset);
 }
 public void LoadMain(LoadResourceAgent agent, object resource)
 {
     m_Resource = resource;
     agent.Helper.LoadAsset(resource, ResourceChildName, IsScene);
 }
 public virtual void OnLoadAssetSuccess(LoadResourceAgent agent, object asset)
 {
 }
 public void LoadMain(LoadResourceAgent agent, object resource)
 {
     m_Resource = resource;
     agent.Helper.LoadAsset(resource);
 }
Exemple #11
0
 override void OnLoadAssetSuccess(LoadResourceAgent agent)
 {
     if (m_OnLoadAssetSuccess(agent, asset, duration)) {
         m_LoadAssetCallback.LoadAssetSuccessCallback(AssetName, asset);
     }
 }
Exemple #12
0
        virtual void OnLoadAssetSuccess(LoadResourceAgent agent)
        {

        }
Exemple #13
0
        void Start(LoadResourceAgent task)
        {
            m_Task = task;

            TryLoadAsset();
        }