예제 #1
0
 public override void OnLoadAssetSuccess(LoadResourceAgent agent, object asset, float duration)
 {
     base.OnLoadAssetSuccess(agent, asset, duration);
     m_MainTask.OnLoadDependencyAsset(agent, AssetName, asset);
 }
예제 #2
0
 public override void OnLoadAssetFailure(LoadResourceAgent agent, LoadResourceStatus status, string errorMessage)
 {
     base.OnLoadAssetFailure(agent, status, errorMessage);
     m_MainTask.OnLoadAssetFailure(agent, LoadResourceStatus.DependencyError, Utility.Text.Format("Can not load dependency asset '{0}', internal status '{1}', internal error message '{2}'.", AssetName, status.ToString(), errorMessage));
 }
예제 #3
0
        public override void OnLoadDependencyAsset(LoadResourceAgent agent, string dependencyAssetName, object dependencyAsset)
        {
            base.OnLoadDependencyAsset(agent, dependencyAssetName, dependencyAsset);

            m_LoadAssetCallbacks.LoadAssetDependencyAssetCallback?.Invoke(AssetName, dependencyAssetName, LoadedDependencyAssetCount, TotalDependencyAssetCount, UserData);
        }