Files
M-Gameton-06/Gameton-06/Assets/Gameton/Scripts/Common/PoolAble.cs

18 lines
329 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Pool;
namespace TON
{
public class PoolAble : MonoBehaviour
{
public IObjectPool<GameObject> Pool { get; set; }
public void ReleaseObject()
{
Pool.Release(gameObject);
}
}
}