补充相关 UI
- 事件 UI:EventForm
- 选项:OptionItem
- 仓库 UI:RepoForm
- 组装槽:CombineSlotItem
- 组件列表槽:RepoItem
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
using GameFramework;
|
||||
using GameFramework.ObjectPool;
|
||||
using GeometryTD.UI;
|
||||
using UnityEngine;
|
||||
|
||||
namespace GeometryTD.PoolObjectBase
|
||||
{
|
||||
public class RepoItemObject : ObjectBase
|
||||
{
|
||||
public static RepoItemObject Create(object target)
|
||||
{
|
||||
RepoItemObject itemObject = ReferencePool.Acquire<RepoItemObject>();
|
||||
itemObject.Initialize(target);
|
||||
return itemObject;
|
||||
}
|
||||
|
||||
protected override void Release(bool isShutdown)
|
||||
{
|
||||
RepoItem item = (RepoItem)Target;
|
||||
if (item == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Object.Destroy(item.gameObject);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ebb8e70bb59842de9695893d7794983f
|
||||
timeCreated: 1772106311
|
||||
Reference in New Issue
Block a user