コード例 #1
0
ファイル: ItemManager.cs プロジェクト: DuncanKeller/dunGeon
 public void Remove(Chest c)
 {
     toRemove.Add(c);
 }
コード例 #2
0
ファイル: Player.cs プロジェクト: DuncanKeller/dunGeon
        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
ファイル: ItemManager.cs プロジェクト: DuncanKeller/dunGeon
 public void Add(Chest c)
 {
     toAdd.Add(c);
 }