private void OnLoadConfigUpdate(object sender, GameFramework.Config.LoadConfigUpdateEventArgs e) { if (m_EnableLoadConfigUpdateEvent) { m_EventComponent.Fire(this, ReferencePool.Acquire <LoadConfigUpdateEventArgs>().Fill(e)); } }
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); } }
private void OnLoadConfigUpdate(object sender, GameFramework.Config.LoadConfigUpdateEventArgs e) { m_EventComponent.Fire(this, LoadConfigUpdateEventArgs.Create(e)); }