private void LoadAssetUpdateCallback(string configAssetName, float progress, object userData) { if (m_LoadConfigUpdateEventHandler != null) { LoadConfigUpdateEventArgs loadConfigUpdateEventArgs = LoadConfigUpdateEventArgs.Create(configAssetName, progress, userData); m_LoadConfigUpdateEventHandler(this, loadConfigUpdateEventArgs); ReferencePool.Release(loadConfigUpdateEventArgs); } }
private void LoadConfigUpdateCallback(string configAssetName, float progress, object userData) { LoadConfigInfo loadConfigInfo = (LoadConfigInfo)userData; if (loadConfigInfo == null) { throw new GameFrameworkException("Load config info is invalid."); } if (m_LoadConfigUpdateEventHandler != null) { LoadConfigUpdateEventArgs loadConfigUpdateEventArgs = LoadConfigUpdateEventArgs.Create(configAssetName, loadConfigInfo.LoadType, progress, loadConfigInfo.UserData); m_LoadConfigUpdateEventHandler(this, loadConfigUpdateEventArgs); ReferencePool.Release(loadConfigUpdateEventArgs); } }