private void OnLoadDictionaryUpdate(object sender, GameFramework.Localization.LoadDictionaryUpdateEventArgs e) { if (m_EnableLoadDictionaryUpdateEvent) { m_EventComponent.Fire(this, ReferencePool.Acquire <LoadDictionaryUpdateEventArgs>().Fill(e)); } }
private void OnLoadDictionaryUpdate(object sender, GameFramework.Localization.LoadDictionaryUpdateEventArgs e) { if (m_EnableLoadDictionaryUpdateEvent) { m_EventComponent.Fire(this, new LoadDictionaryUpdateEventArgs(e)); } }
private void LoadAssetUpdateCallback(string dictionaryAssetName, float progress, object userData) { if (m_LoadDictionaryUpdateEventHandler != null) { LoadDictionaryUpdateEventArgs loadDictionaryUpdateEventArgs = LoadDictionaryUpdateEventArgs.Create(dictionaryAssetName, progress, userData); m_LoadDictionaryUpdateEventHandler(this, loadDictionaryUpdateEventArgs); ReferencePool.Release(loadDictionaryUpdateEventArgs); } }
private void LoadAssetUpdateCallback(string dictionaryAssetName, float progress, object userData) { LoadDictionaryInfo loadDictionaryInfo = (LoadDictionaryInfo)userData; if (loadDictionaryInfo == null) { throw new GameFrameworkException("Load dictionary info is invalid."); } if (m_LoadDictionaryUpdateEventHandler != null) { LoadDictionaryUpdateEventArgs loadDictionaryUpdateEventArgs = LoadDictionaryUpdateEventArgs.Create(dictionaryAssetName, loadDictionaryInfo.LoadType, progress, loadDictionaryInfo.UserData); m_LoadDictionaryUpdateEventHandler(this, loadDictionaryUpdateEventArgs); ReferencePool.Release(loadDictionaryUpdateEventArgs); } }
private void OnLoadDictionaryUpdate(object sender, GameFramework.Localization.LoadDictionaryUpdateEventArgs e) { m_EventComponent.Fire(this, LoadDictionaryUpdateEventArgs.Create(e)); }