You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

24 lines
414 B

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