Example #1
0
 public void Remove(Chest c)
 {
     toRemove.Add(c);
 }
Example #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;
            }
        }
Example #3
0
 public void Add(Chest c)
 {
     toAdd.Add(c);
 }