C# 클래스 InventoryManager

상속: MonoBehaviour
파일 보기 프로젝트 열기: imann24/cs327-bestmobilegameever 1 사용 예제들

Private Properties

프로퍼티 타입 설명
ChangeHeight IEnumerator

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
ChangeHeight ( Vector2 target ) : IEnumerator

Changes the height over time.

메소드 상세

Deselect() 공개 메소드

public Deselect ( ) : void
리턴 void

GetReport() 공개 메소드

public GetReport ( ) : InventoryReport,
리턴 InventoryReport,

GiveItem() 공개 메소드

Gives the item.
public GiveItem ( string item ) : bool
item string
리턴 bool

GiveItemList() 공개 메소드

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

Hide() 공개 메소드

Hide the inventory panel.
public Hide ( ) : void
리턴 void

OnBeginDrag() 공개 메소드

public OnBeginDrag ( PointerEventData eventData ) : void
eventData PointerEventData
리턴 void

OnDrag() 공개 메소드

public OnDrag ( PointerEventData eventData ) : void
eventData PointerEventData
리턴 void

OnPointerClick() 공개 메소드

public OnPointerClick ( PointerEventData eventData ) : void
eventData PointerEventData
리턴 void

OnPointerEnter() 공개 메소드

public OnPointerEnter ( PointerEventData eventData ) : void
eventData PointerEventData
리턴 void

OnPointerExit() 공개 메소드

public OnPointerExit ( PointerEventData eventData ) : void
eventData PointerEventData
리턴 void

PollItemsInInventory() 공개 메소드

public PollItemsInInventory ( ) : List
리턴 List

ReturnSelected() 공개 메소드

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

Select() 공개 메소드

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

Show() 공개 메소드

Show the inventory panel.
public Show ( ) : void
리턴 void

TakeItem() 공개 메소드

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

TakeItemList() 공개 메소드

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

Toggle() 공개 메소드

Toggle between showing and hidden.
public Toggle ( ) : void
리턴 void

ToggleActive() 공개 메소드

public ToggleActive ( bool isActive ) : void
isActive bool
리턴 void