기존 코드
using UnityEngine;
using UnityEngine.Pool;
public class PoolAble : MonoBehaviour
{
public IObjectPool<GameObject> Pool { get; set; }
//public void ReleaseObject()
//{
// Pool.Release(gameObject);
//}
public void ReleaseObject(float releaseTimer)
{
if (gameObject.activeInHierarchy)
{
EnemyBulletPoolManager.instance.ScheduleRelease(gameObject, releaseTimer);
}
else
{
Debug.LogWarning("해당 오브젝트는 이미 inactive 상태: " + gameObject.name);
}
}
}
C#
복사
Pool쪽 지금 더 손볼 부분이 있어서 보류
2024.04.08
오브젝트 풀 코어를 바꾸어 Poolable 코드의 의미가 사라져 일단 파기