void PushFireballTimer() { EnemyFireBall fireBall = LaunchedFireballList.Dequeue(); ObjectPoolManager.Instance.FireballQueue.Enqueue(fireBall); fireBall.gameObject.SetActive(false); }
public EnemyFireBall PopFireBall() { enemyFireBall = ObjectPoolManager.Instance.FireballQueue.Dequeue(); enemyFireBall.gameObject.SetActive(true); return(enemyFireBall); }