/// <summary>
        /// 创建显示物体失败事件。
        /// </summary>
        /// <param name="e">内部事件。</param>
        /// <returns>创建的显示物体失败事件。</returns>
        public static ShowItemFailureEventArgs Create(GameFramework.Item.ShowItemFailureEventArgs e)
        {
            ShowItemInfo             showItemInfo             = (ShowItemInfo)e.UserData;
            ShowItemFailureEventArgs showItemFailureEventArgs = ReferencePool.Acquire <ShowItemFailureEventArgs>();

            showItemFailureEventArgs.ItemId        = e.ItemId;
            showItemFailureEventArgs.ItemLogicType = showItemInfo.ItemLogicType;
            showItemFailureEventArgs.ItemAssetName = e.ItemAssetName;
            showItemFailureEventArgs.ItemGroupName = e.ItemGroupName;
            showItemFailureEventArgs.ErrorMessage  = e.ErrorMessage;
            showItemFailureEventArgs.UserData      = showItemInfo.UserData;
            ReferencePool.Release(showItemInfo);
            return(showItemFailureEventArgs);
        }
 private void OnShowItemFailure(object sender, GameFramework.Item.ShowItemFailureEventArgs e)
 {
     Log.Warning("Show item failure, item id '{0}', asset name '{1}', item group name '{2}', error message '{3}'.", e.ItemId.ToString(), e.ItemAssetName, e.ItemGroupName, e.ErrorMessage);
     m_EventComponent.Fire(this, ShowItemFailureEventArgs.Create(e));
 }