init
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
using GameFramework;
|
||||
using GameFramework.ObjectPool;
|
||||
using GeometryTD.UI;
|
||||
using UnityEngine;
|
||||
|
||||
namespace GeometryTD.PoolObjectBase
|
||||
{
|
||||
public class HPBarItemObject : ObjectBase
|
||||
{
|
||||
public static HPBarItemObject Create(object target)
|
||||
{
|
||||
HPBarItemObject hpBarItemObject = ReferencePool.Acquire<HPBarItemObject>();
|
||||
hpBarItemObject.Initialize(target);
|
||||
return hpBarItemObject;
|
||||
}
|
||||
|
||||
protected override void Release(bool isShutdown)
|
||||
{
|
||||
HPBarItem hpBarItem = (HPBarItem)Target;
|
||||
if (hpBarItem == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Object.Destroy(hpBarItem.gameObject);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8e6d2d8655da0094bb6063ce38ed582d
|
||||
timeCreated: 1528026155
|
||||
licenseType: Pro
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user