C# Class Sol.Inventory

Inheritance: Menu
Exibir arquivo Open project: Stumpstump/RoverGame

Public Properties

Property Type Description
ContainerExchange bool
InventorySlotContainer UnityEngine.Transform
dropButton UnityEngine.UI.Button
equipmentPanel EquipmentPanel
ingredientsInInventory List
inventorySlotPrefab InventorySlot
previewCamera UnityEngine.Camera
toggleGroup UnityEngine.UI.ToggleGroup
useButton UnityEngine.UI.Button
useItemEffect UnityEngine.AudioClip

Public Methods

Method Description
AddInventoryItem ( Ingredient ingredient, int count ) : void
BuildInventorySlot ( Ingredient ingredient, int count ) : void
Close ( ) : void
CloseInfoPanel ( ) : void
GetIngredientAmount ( Ingredient ingredient ) : int
GetIngredientAmount ( int ingredientId ) : int
InitializeInventorySlots ( ) : void
Open ( ) : void
Open ( bool containerExchange = false ) : void
OpenInfoPanel ( ) : void
RemoveAllInventoryItems ( ) : void
RemoveInventoryItem ( Ingredient ingredient, int count ) : void

Private Methods

Method Description
Awake ( ) : void
CloseMessageMenu ( ) : void
CloseMessageMenuCoroutine ( ) : IEnumerator
Transfer ( ) : void

Method Details

AddInventoryItem() public method

public AddInventoryItem ( Ingredient ingredient, int count ) : void
ingredient Ingredient
count int
return void

BuildInventorySlot() public method

public BuildInventorySlot ( Ingredient ingredient, int count ) : void
ingredient Ingredient
count int
return void

Close() public method

public Close ( ) : void
return void

CloseInfoPanel() public method

public CloseInfoPanel ( ) : void
return void

GetIngredientAmount() public method

public GetIngredientAmount ( Ingredient ingredient ) : int
ingredient Ingredient
return int

GetIngredientAmount() public method

public GetIngredientAmount ( int ingredientId ) : int
ingredientId int
return int

InitializeInventorySlots() public method

public InitializeInventorySlots ( ) : void
return void

Open() public method

public Open ( ) : void
return void

Open() public method

public Open ( bool containerExchange = false ) : void
containerExchange bool
return void

OpenInfoPanel() public method

public OpenInfoPanel ( ) : void
return void

RemoveAllInventoryItems() public method

public RemoveAllInventoryItems ( ) : void
return void

RemoveInventoryItem() public method

public RemoveInventoryItem ( Ingredient ingredient, int count ) : void
ingredient Ingredient
count int
return void

Property Details

ContainerExchange public_oe property

public bool ContainerExchange
return bool

InventorySlotContainer public_oe property

public Transform,UnityEngine InventorySlotContainer
return UnityEngine.Transform

dropButton public_oe property

public Button,UnityEngine.UI dropButton
return UnityEngine.UI.Button

equipmentPanel public_oe property

public EquipmentPanel,Sol equipmentPanel
return EquipmentPanel

ingredientsInInventory public_oe property

public List ingredientsInInventory
return List

inventorySlotPrefab public_oe property

public InventorySlot,Sol inventorySlotPrefab
return InventorySlot

previewCamera public_oe property

public Camera,UnityEngine previewCamera
return UnityEngine.Camera

toggleGroup public_oe property

public ToggleGroup,UnityEngine.UI toggleGroup
return UnityEngine.UI.ToggleGroup

useButton public_oe property

public Button,UnityEngine.UI useButton
return UnityEngine.UI.Button

useItemEffect public_oe property

public AudioClip,UnityEngine useItemEffect
return UnityEngine.AudioClip