스킬 리소스 재사용을 위한 ObjectPool 매니저 추가

This commit is contained in:
aube.lee
2025-02-03 14:31:57 +09:00
parent 4dd51940cc
commit c3f6ae7440
4 changed files with 168 additions and 0 deletions

View 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);
}
}
}