스킬 리소스 재사용을 위한 ObjectPool 매니저 추가
This commit is contained in:
17
Gameton-06/Assets/Gameton/Scripts/Common/PoolAble.cs
Normal file
17
Gameton-06/Assets/Gameton/Scripts/Common/PoolAble.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user