C# Класс Sol.Container

Наследование: Menu
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
InventorySlotContainer UnityEngine.Transform
closeButton UnityEngine.UI.Button
containerSlotPrefab ContainerSlot
containerSlots List
ingredientsInInventory List
inventoryButton UnityEngine.UI.Button
title UnityEngine.UI.Text

Открытые методы

Метод Описание
AddInventoryItem ( Ingredient ingredient, int count ) : void
BuildInventorySlot ( Ingredient ingredient, int count ) : void
Close ( ) : void
GetIngredientAmount ( Ingredient ingredient ) : int
GetIngredientAmount ( int ingredientId ) : int
InitializeInventorySlots ( ) : void
Open ( ) : void
Open ( List ingredients, ContainerObject container ) : void
RemoveInventoryItem ( Ingredient ingredient, int count ) : void

Приватные методы

Метод Описание
Awake ( ) : void
OpenInventory ( ) : void
Update ( ) : void

Описание методов

AddInventoryItem() публичный Метод

public AddInventoryItem ( Ingredient ingredient, int count ) : void
ingredient Ingredient
count int
Результат void

BuildInventorySlot() публичный Метод

public BuildInventorySlot ( Ingredient ingredient, int count ) : void
ingredient Ingredient
count int
Результат void

Close() публичный Метод

public Close ( ) : void
Результат void

GetIngredientAmount() публичный Метод

public GetIngredientAmount ( Ingredient ingredient ) : int
ingredient Ingredient
Результат int

GetIngredientAmount() публичный Метод

public GetIngredientAmount ( int ingredientId ) : int
ingredientId int
Результат int

InitializeInventorySlots() публичный Метод

public InitializeInventorySlots ( ) : void
Результат void

Open() публичный Метод

public Open ( ) : void
Результат void

Open() публичный Метод

public Open ( List ingredients, ContainerObject container ) : void
ingredients List
container ContainerObject
Результат void

RemoveInventoryItem() публичный Метод

public RemoveInventoryItem ( Ingredient ingredient, int count ) : void
ingredient Ingredient
count int
Результат void

Описание свойств

InventorySlotContainer публичное свойство

public Transform,UnityEngine InventorySlotContainer
Результат UnityEngine.Transform

closeButton публичное свойство

public Button,UnityEngine.UI closeButton
Результат UnityEngine.UI.Button

containerSlotPrefab публичное свойство

public ContainerSlot,Sol containerSlotPrefab
Результат ContainerSlot

containerSlots публичное свойство

public List containerSlots
Результат List

ingredientsInInventory публичное свойство

public List ingredientsInInventory
Результат List

inventoryButton публичное свойство

public Button,UnityEngine.UI inventoryButton
Результат UnityEngine.UI.Button

title публичное свойство

public Text,UnityEngine.UI title
Результат UnityEngine.UI.Text