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(); itemObject.Initialize(target); return itemObject; } protected override void Release(bool isShutdown) { RepoItem item = (RepoItem)Target; if (item == null) { return; } Object.Destroy(item.gameObject); } } }