public void Remove(Chest c) { toRemove.Add(c); }
public void UpdateChest(List<Chest> chests) { bool overlapping = false; foreach (Chest chest in chests) { if (chest.Rect.Intersects(DrawRect)) { overlappingChest = chest; overlapping = true; } } if (!overlapping) { overlappingChest = null; } }
public void Add(Chest c) { toAdd.Add(c); }