C# Class InventoryManager

Inheritance: MonoBehaviour
Exibir arquivo Open project: imann24/cs327-bestmobilegameever Class Usage Examples

Private Properties

Property Type Description
ChangeHeight IEnumerator

Public Methods

Method 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

Method Description
ChangeHeight ( Vector2 target ) : IEnumerator

Changes the height over time.

Method Details

Deselect() public method

public Deselect ( ) : void
return void

GetReport() public method

public GetReport ( ) : InventoryReport,
return InventoryReport,

GiveItem() public method

Gives the item.
public GiveItem ( string item ) : bool
item string
return bool

GiveItemList() public method

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

Hide() public method

Hide the inventory panel.
public Hide ( ) : void
return void

OnBeginDrag() public method

public OnBeginDrag ( PointerEventData eventData ) : void
eventData PointerEventData
return void

OnDrag() public method

public OnDrag ( PointerEventData eventData ) : void
eventData PointerEventData
return void

OnPointerClick() public method

public OnPointerClick ( PointerEventData eventData ) : void
eventData PointerEventData
return void

OnPointerEnter() public method

public OnPointerEnter ( PointerEventData eventData ) : void
eventData PointerEventData
return void

OnPointerExit() public method

public OnPointerExit ( PointerEventData eventData ) : void
eventData PointerEventData
return void

PollItemsInInventory() public method

public PollItemsInInventory ( ) : List
return List

ReturnSelected() public method

Returns the selected item to the inventory.
public ReturnSelected ( ) : void
return void

Select() public method

Select the specified item.
public Select ( GameObject item ) : void
item GameObject Item.
return void

Show() public method

Show the inventory panel.
public Show ( ) : void
return void

TakeItem() public method

Takes the item.
public TakeItem ( string item ) : bool
item string Item.
return bool

TakeItemList() public method

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

Toggle() public method

Toggle between showing and hidden.
public Toggle ( ) : void
return void

ToggleActive() public method

public ToggleActive ( bool isActive ) : void
isActive bool
return void