コード例 #1
0
ファイル: Player.cs プロジェクト: Justnuked/themaweek-radius
 public void PickupItem(Objects obj)
 {
     // Add an if-statement here when you want to have a maximum number of items
     inventory.Add(obj.GetName(), obj);
     obj.SetIsAcquirable(false);
 }
コード例 #2
0
ファイル: Room.cs プロジェクト: ricardo1709/gapweekp3
 public void AddItem(Objects item, int x, int y)
 {
     this.items[x, y] = item;
 }