예제 #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);
 }