C# Class InventoryManager

Inheritance: MonoBehaviour
Afficher le fichier Open project: imann24/cs327-bestmobilegameever Class Usage Examples

Private Properties

Свойство Type Description
ChangeHeight IEnumerator

Méthodes publiques

Méthode Description
Deselect ( ) : void
GetReport ( ) : InventoryReport,
GiveItem ( string item ) : bool

Gives the item.

GiveItemList ( List items ) : bool

Gives each item in the list.

Hide ( ) : void

Hide the inventory panel.

OnBeginDrag ( PointerEventData eventData ) : void
OnDrag ( PointerEventData eventData ) : void
OnPointerClick ( PointerEventData eventData ) : void
OnPointerEnter ( PointerEventData eventData ) : void
OnPointerExit ( PointerEventData eventData ) : void
PollItemsInInventory ( ) : List
ReturnSelected ( ) : void

Returns the selected item to the inventory.

Select ( GameObject item ) : void

Select the specified item.

Show ( ) : void

Show the inventory panel.

TakeItem ( string item ) : bool

Takes the item.

TakeItemList ( List items ) : bool

Takes each item in the list.

Toggle ( ) : void

Toggle between showing and hidden.

ToggleActive ( bool isActive ) : void

Private Methods

Méthode Description
ChangeHeight ( Vector2 target ) : IEnumerator

Changes the height over time.

Method Details

Deselect() public méthode

public Deselect ( ) : void
Résultat void

GetReport() public méthode

public GetReport ( ) : InventoryReport,
Résultat InventoryReport,

GiveItem() public méthode

Gives the item.
public GiveItem ( string item ) : bool
item string
Résultat bool

GiveItemList() public méthode

Gives each item in the list.
public GiveItemList ( List items ) : bool
items List Items.
Résultat bool

Hide() public méthode

Hide the inventory panel.
public Hide ( ) : void
Résultat void

OnBeginDrag() public méthode

public OnBeginDrag ( PointerEventData eventData ) : void
eventData PointerEventData
Résultat void

OnDrag() public méthode

public OnDrag ( PointerEventData eventData ) : void
eventData PointerEventData
Résultat void

OnPointerClick() public méthode

public OnPointerClick ( PointerEventData eventData ) : void
eventData PointerEventData
Résultat void

OnPointerEnter() public méthode

public OnPointerEnter ( PointerEventData eventData ) : void
eventData PointerEventData
Résultat void

OnPointerExit() public méthode

public OnPointerExit ( PointerEventData eventData ) : void
eventData PointerEventData
Résultat void

PollItemsInInventory() public méthode

public PollItemsInInventory ( ) : List
Résultat List

ReturnSelected() public méthode

Returns the selected item to the inventory.
public ReturnSelected ( ) : void
Résultat void

Select() public méthode

Select the specified item.
public Select ( GameObject item ) : void
item GameObject Item.
Résultat void

Show() public méthode

Show the inventory panel.
public Show ( ) : void
Résultat void

TakeItem() public méthode

Takes the item.
public TakeItem ( string item ) : bool
item string Item.
Résultat bool

TakeItemList() public méthode

Takes each item in the list.
public TakeItemList ( List items ) : bool
items List Items.
Résultat bool

Toggle() public méthode

Toggle between showing and hidden.
public Toggle ( ) : void
Résultat void

ToggleActive() public méthode

public ToggleActive ( bool isActive ) : void
isActive bool
Résultat void