private void LoadAssetDependencyAssetCallback(string dataTableAssetName, string dependencyAssetName, int loadedCount, int totalCount, object userData) { if (m_LoadDataTableDependencyAssetEventHandler != null) { LoadDataTableDependencyAssetEventArgs loadDataTableDependencyAssetEventArgs = LoadDataTableDependencyAssetEventArgs.Create(dataTableAssetName, dependencyAssetName, loadedCount, totalCount, userData); m_LoadDataTableDependencyAssetEventHandler(this, loadDataTableDependencyAssetEventArgs); ReferencePool.Release(loadDataTableDependencyAssetEventArgs); } }
private void LoadDataTableDependencyAssetCallback(string dataTableAssetName, string dependencyAssetName, int loadedCount, int totalCount, object userData) { LoadDataTableInfo loadDataTableInfo = (LoadDataTableInfo)userData; if (loadDataTableInfo == null) { throw new GameFrameworkException("Load data table info is invalid."); } if (m_LoadDataTableDependencyAssetEventHandler != null) { LoadDataTableDependencyAssetEventArgs loadDataTableDependencyAssetEventArgs = LoadDataTableDependencyAssetEventArgs.Create(dataTableAssetName, dependencyAssetName, loadedCount, totalCount, loadDataTableInfo.UserData); m_LoadDataTableDependencyAssetEventHandler(this, loadDataTableDependencyAssetEventArgs); ReferencePool.Release(loadDataTableDependencyAssetEventArgs); } }