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); } }
override void OnLoadAssetSuccess(LoadResourceAgent agent) { if (m_OnLoadAssetSuccess(agent, asset, duration)) { m_LoadAssetCallback.LoadAssetSuccessCallback(AssetName, asset); } }