/// <summary> /// Remove collidable /// </summary> /// <param name="collidable"></param> public void RemoveCollidable(Collidable collidable) { _collidables.Remove(collidable); }
/// <summary> /// Add collidable /// </summary> /// <param name="collidable"></param> public void AddCollidable(Collidable collidable) { if (collidable == null || _collidables.Contains(collidable)) { Console.WriteLine("Collidable null or already added"); return; } _collidables.Add(collidable); }