Пример #1
0
 public void Remove(Chest c)
 {
     toRemove.Add(c);
 }
Пример #2
0
        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;
            }
        }
Пример #3
0
 public void Add(Chest c)
 {
     toAdd.Add(c);
 }