C# Class Sol.Container

Inheritance: Menu
Afficher le fichier Open project: Stumpstump/RoverGame

Méthodes publiques

Свойство Type Description
InventorySlotContainer UnityEngine.Transform
closeButton UnityEngine.UI.Button
containerSlotPrefab ContainerSlot
containerSlots List
ingredientsInInventory List
inventoryButton UnityEngine.UI.Button
title UnityEngine.UI.Text

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
Awake ( ) : void
OpenInventory ( ) : void
Update ( ) : void

Method Details

AddInventoryItem() public méthode

public AddInventoryItem ( Ingredient ingredient, int count ) : void
ingredient Ingredient
count int
Résultat void

BuildInventorySlot() public méthode

public BuildInventorySlot ( Ingredient ingredient, int count ) : void
ingredient Ingredient
count int
Résultat void

Close() public méthode

public Close ( ) : void
Résultat void

GetIngredientAmount() public méthode

public GetIngredientAmount ( Ingredient ingredient ) : int
ingredient Ingredient
Résultat int

GetIngredientAmount() public méthode

public GetIngredientAmount ( int ingredientId ) : int
ingredientId int
Résultat int

InitializeInventorySlots() public méthode

public InitializeInventorySlots ( ) : void
Résultat void

Open() public méthode

public Open ( ) : void
Résultat void

Open() public méthode

public Open ( List ingredients, ContainerObject container ) : void
ingredients List
container ContainerObject
Résultat void

RemoveInventoryItem() public méthode

public RemoveInventoryItem ( Ingredient ingredient, int count ) : void
ingredient Ingredient
count int
Résultat void

Property Details

InventorySlotContainer public_oe property

public Transform,UnityEngine InventorySlotContainer
Résultat UnityEngine.Transform

closeButton public_oe property

public Button,UnityEngine.UI closeButton
Résultat UnityEngine.UI.Button

containerSlotPrefab public_oe property

public ContainerSlot,Sol containerSlotPrefab
Résultat ContainerSlot

containerSlots public_oe property

public List containerSlots
Résultat List

ingredientsInInventory public_oe property

public List ingredientsInInventory
Résultat List

inventoryButton public_oe property

public Button,UnityEngine.UI inventoryButton
Résultat UnityEngine.UI.Button

title public_oe property

public Text,UnityEngine.UI title
Résultat UnityEngine.UI.Text