15 lines
278 B
C#
15 lines
278 B
C#
using UnityEngine;
|
|
using UnityEngine.Pool;
|
|
|
|
namespace KitsuneCafe.Sys
|
|
{
|
|
public class PooledObject : MonoBehaviour
|
|
{
|
|
public IObjectPool<GameObject> objectPool;
|
|
|
|
public void Release()
|
|
{
|
|
objectPool.Release(gameObject);
|
|
}
|
|
}
|
|
}
|