- 事件命名规范化:RefreshEventArgs → LevelUpRefreshEventArgs - LevelUp 子组件目录调整:LevelUpRewardItem + LevelUpRewardItemContext 移动到 LevelUp/ - Shop 子组件目录调整:DisplayItem/DisplayListArea/GoodsItem/ShopGoodsItem 及其 Context/RawData 全部移动到 Shop/ - 删除冗余文件:LevelUpRewardItemRawData(从未被使用) - 新增 ObjectPool 目录结构 - 更新 LevelUpController 和 LevelUpForm 中的事件引用
28 lines
680 B
C#
28 lines
680 B
C#
using GameFramework;
|
|
using GameFramework.ObjectPool;
|
|
using UnityEngine;
|
|
|
|
namespace SepCore.UI
|
|
{
|
|
public class DisplayItemObject : ObjectBase
|
|
{
|
|
public static DisplayItemObject Create(object target)
|
|
{
|
|
DisplayItemObject displayItemObject = ReferencePool.Acquire<DisplayItemObject>();
|
|
displayItemObject.Initialize(target);
|
|
return displayItemObject;
|
|
}
|
|
|
|
protected override void Release(bool isShutdown)
|
|
{
|
|
DisplayItem item = (DisplayItem)Target;
|
|
if (item == null)
|
|
{
|
|
return;
|
|
}
|
|
|
|
Object.Destroy(item.gameObject);
|
|
}
|
|
}
|
|
}
|