예제 #1
0
 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));
     }
 }
예제 #3
0
 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);
     }
 }
예제 #4
0
        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));
 }