private void OnLoadDictionaryDependencyAsset(object sender, GameFramework.Localization.LoadDictionaryDependencyAssetEventArgs e) { if (m_EnableLoadDictionaryDependencyAssetEvent) { m_EventComponent.Fire(this, ReferencePool.Acquire <LoadDictionaryDependencyAssetEventArgs>().Fill(e)); } }
private void OnLoadDictionaryDependencyAsset(object sender, GameFramework.Localization.LoadDictionaryDependencyAssetEventArgs e) { if (m_EnableLoadDictionaryDependencyAssetEvent) { m_EventComponent.Fire(this, new LoadDictionaryDependencyAssetEventArgs(e)); } }
private void LoadAssetDependencyAssetCallback(string dictionaryAssetName, string dependencyAssetName, int loadedCount, int totalCount, object userData) { if (m_LoadDictionaryDependencyAssetEventHandler != null) { LoadDictionaryDependencyAssetEventArgs loadDictionaryDependencyAssetEventArgs = LoadDictionaryDependencyAssetEventArgs.Create(dictionaryAssetName, dependencyAssetName, loadedCount, totalCount, userData); m_LoadDictionaryDependencyAssetEventHandler(this, loadDictionaryDependencyAssetEventArgs); ReferencePool.Release(loadDictionaryDependencyAssetEventArgs); } }
private void LoadAssetDependencyAssetCallback(string dictionaryAssetName, string dependencyAssetName, int loadedCount, int totalCount, object userData) { LoadDictionaryInfo loadDictionaryInfo = (LoadDictionaryInfo)userData; if (loadDictionaryInfo == null) { throw new GameFrameworkException("Load dictionary info is invalid."); } if (m_LoadDictionaryDependencyAssetEventHandler != null) { LoadDictionaryDependencyAssetEventArgs loadDictionaryDependencyAssetEventArgs = LoadDictionaryDependencyAssetEventArgs.Create(dictionaryAssetName, dependencyAssetName, loadedCount, totalCount, loadDictionaryInfo.UserData); m_LoadDictionaryDependencyAssetEventHandler(this, loadDictionaryDependencyAssetEventArgs); ReferencePool.Release(loadDictionaryDependencyAssetEventArgs); } }
private void OnLoadDictionaryDependencyAsset(object sender, GameFramework.Localization.LoadDictionaryDependencyAssetEventArgs e) { m_EventComponent.Fire(this, LoadDictionaryDependencyAssetEventArgs.Create(e)); }