canto/Assets/Scripts/System/PooledObject.cs

15 lines
281 B
C#

using UnityEngine;
using UnityEngine.Pool;
namespace KitsuneCafe.System
{
public class PooledObject : MonoBehaviour
{
public IObjectPool<GameObject> objectPool;
public void Release()
{
objectPool.Release(gameObject);
}
}
}