示例#1
0
        void PushFireballTimer()
        {
            EnemyFireBall fireBall = LaunchedFireballList.Dequeue();

            ObjectPoolManager.Instance.FireballQueue.Enqueue(fireBall);
            fireBall.gameObject.SetActive(false);
        }
示例#2
0
 public EnemyFireBall PopFireBall()
 {
     enemyFireBall = ObjectPoolManager.Instance.FireballQueue.Dequeue();
     enemyFireBall.gameObject.SetActive(true);
     return(enemyFireBall);
 }