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