using System.Collections.Generic; using Utils; namespace Player { public class BulletManager : MonoSingleton { public readonly List Collection = new List(); public void ShutDown() { foreach (var bullet in Collection) { if (bullet == null || bullet.gameObject == null) continue; bullet.DestroyBullet(); } Collection.Clear(); } } }