public static void RemoveBulletObject(BulletObject bobj) { if (Singleton.bulletObjList.Contains(bobj)) { Singleton.bulletObjList.Remove(bobj); } else { Debug.ErrorLog("That bulletobject is not in the list and cannot be removed"); } }
// adding and removing bulletobjects public static void AddBulletObject(BulletObject bobj) { if (!Singleton.bulletObjList.Contains(bobj)) { Singleton.bulletObjList.Add(bobj); } else { Debug.ErrorLog("That bulletobject is already in the list adn cannot be added"); } }