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);
     }
 }
Exemplo n.º 2
0
        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);
            }
        }