コード例 #1
0
 private void LoadAssetUpdateCallback(string dataTableAssetName, float progress, object userData)
 {
     if (m_LoadDataTableUpdateEventHandler != null)
     {
         LoadDataTableUpdateEventArgs loadDataTableUpdateEventArgs = LoadDataTableUpdateEventArgs.Create(dataTableAssetName, progress, userData);
         m_LoadDataTableUpdateEventHandler(this, loadDataTableUpdateEventArgs);
         ReferencePool.Release(loadDataTableUpdateEventArgs);
     }
 }
コード例 #2
0
ファイル: DataTableManager.cs プロジェクト: Mrwenshuai/GF
        private void LoadDataTableUpdateCallback(string dataTableAssetName, float progress, object userData)
        {
            LoadDataTableInfo loadDataTableInfo = (LoadDataTableInfo)userData;

            if (loadDataTableInfo == null)
            {
                throw new GameFrameworkException("Load data table info is invalid.");
            }

            if (m_LoadDataTableUpdateEventHandler != null)
            {
                LoadDataTableUpdateEventArgs loadDataTableUpdateEventArgs = LoadDataTableUpdateEventArgs.Create(dataTableAssetName, loadDataTableInfo.LoadType, progress, loadDataTableInfo.UserData);
                m_LoadDataTableUpdateEventHandler(this, loadDataTableUpdateEventArgs);
                ReferencePool.Release(loadDataTableUpdateEventArgs);
            }
        }