コード例 #1
0
 private void OnLoadDictionaryDependencyAsset(object sender, GameFramework.Localization.LoadDictionaryDependencyAssetEventArgs e)
 {
     if (m_EnableLoadDictionaryDependencyAssetEvent)
     {
         m_EventComponent.Fire(this, ReferencePool.Acquire <LoadDictionaryDependencyAssetEventArgs>().Fill(e));
     }
 }
コード例 #2
0
 private void OnLoadDictionaryDependencyAsset(object sender, GameFramework.Localization.LoadDictionaryDependencyAssetEventArgs e)
 {
     if (m_EnableLoadDictionaryDependencyAssetEvent)
     {
         m_EventComponent.Fire(this, new LoadDictionaryDependencyAssetEventArgs(e));
     }
 }
コード例 #3
0
 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);
     }
 }
コード例 #4
0
        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);
            }
        }
コード例 #5
0
 private void OnLoadDictionaryDependencyAsset(object sender, GameFramework.Localization.LoadDictionaryDependencyAssetEventArgs e)
 {
     m_EventComponent.Fire(this, LoadDictionaryDependencyAssetEventArgs.Create(e));
 }