예제 #1
0
 public void BuildItems(Storage storage)
 {
     _storage = storage;
     _content.Children.Clear();
     for (var i = 0; i < storage.Content.Count; i++)
     {
         var item = _factory.CreateButton <InventoryItem>(7);
         item.Build(storage.Content[i]);
         item.SetContainer(this);
         _content.Children.Add(item);
     }
 }