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); } }