public override void OnLoadAssetSuccess(LoadResourceAgent agent, object asset, float duration)
 {
     base.OnLoadAssetSuccess(agent, asset, duration);
     if (m_LoadAssetCallbacks.LoadAssetSuccessCallback != null)
     {
         m_LoadAssetCallbacks.LoadAssetSuccessCallback(AssetName, asset, duration, UserData);
     }
 }
Example #2
0
 override void OnLoadAssetSuccess(LoadResourceAgent agent)
 {
     if (m_OnLoadAssetSuccess(agent, asset, duration)) {
         m_LoadAssetCallback.LoadAssetSuccessCallback(AssetName, asset);
     }
 }