private void LoadAssetDependencyAssetCallback(string ItemAssetName, string dependencyAssetName, int loadedCount, int totalCount, object userData) { ShowItemInfo showItemInfo = (ShowItemInfo)userData; if (showItemInfo == null) { throw new GameFrameworkException("Show Item info is invalid."); } if (m_ShowItemDependencyAssetEventHandler != null) { ShowItemDependencyAssetEventArgs showItemDependencyAssetEventArgs = ShowItemDependencyAssetEventArgs.Create(showItemInfo.ItemId, ItemAssetName, showItemInfo.ItemGroup.Name, dependencyAssetName, loadedCount, totalCount, showItemInfo.UserData); m_ShowItemDependencyAssetEventHandler(this, showItemDependencyAssetEventArgs); ReferencePool.Release(showItemDependencyAssetEventArgs); } }
private void OnShowItemDependencyAsset(object sender, GameFramework.Item.ShowItemDependencyAssetEventArgs e) { m_EventComponent.Fire(this, ShowItemDependencyAssetEventArgs.Create(e)); }