Poolable 코드에 대해 Abstract 사용은 어떤지(튜터님 조언)

작업자
이도현
Issue.No
7
날짜
2024/03/18
분류
리팩토링
심각도
10
완료
착수

기존 코드

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 코드의 의미가 사라져 일단 파기