コード例 #1
0
 public void ShelfNewItem(Item item)
 {
     if (selectedButton != null)
     {
         ShelfSpace shelf = selectedButton.GetComponent <ShelfSpace> ();
         if (shelf.AvalibleSlot())
         {
             shelf.AddItem(item);
             inv.RemoveFromItems(item);
         }
     }
 }
コード例 #2
0
ファイル: Area27.cs プロジェクト: Bargsteen/P5-MI-AAU
 //Constructer from Area
 public Area27(string areaName, ImmutableArray <ItemType> availableWares, Station[] stations, ShelfSpace shelfSpace) : base(areaName, availableWares, stations, shelfSpace)
 {
 }