C# 클래스 Inventory, TestGame

파일 보기 프로젝트 열기: liuxq/TestGame 1 사용 예제들

공개 메소드들

메소드 설명
ConsumeItem ( Item, item ) : void
EquiptItem ( Item item ) : void
OnUpdateItemList ( ) : void
UnEquipItem1 ( Item item ) : void
addAllItemsToInventory ( ) : void
addItemToInventory ( int id, UInt64 itemUUID, int value ) : GameObject
addItemToInventory ( int itemId, UInt64 itemUUID, int value, int itemIndex ) : GameObject
addItemToInventory ( int id, int value ) : GameObject
addItemToInventory ( int id ) : void
addItemToInventory ( int ignoreSlot, int itemID, int itemValue ) : void
addItemToInventoryStorage ( int itemID, int value ) : void
adjustInventorySize ( ) : void
changeInventoryPanelDesign ( Image image ) : void
characterSystem ( ) : bool
checkIfAllInventoryClosed ( ) : void
checkIfItemAllreadyExist ( int itemID, int itemValue ) : bool
closeInventory ( ) : void
deleteAllItems ( ) : void
deleteItem ( Item item ) : void
deleteItemByIndex ( Int32 index ) : void
deleteItemFromInventory ( Item item ) : void
deleteItemFromInventoryWithGameObject ( Item item ) : void
getFirstEmptyItemIndex ( ) : int
getItemGameObject ( Item item ) : GameObject
getItemGameObject ( int itemId ) : GameObject
getItemGameObjectByName ( Item item ) : GameObject
getItemList ( ) : List
getPositionOfItem ( Item item ) : int
getPrefabs ( ) : void
openInventory ( ) : void
setAsMain ( ) : void
setDefaultSettings ( ) : void
setImportantVariables ( ) : void
sortItems ( ) : void
stackableSettings ( ) : void
stackableSettings ( bool stackable, Vector3 posi ) : void
updateIconSize ( ) : void
updateIconSize ( int iconSize ) : void
updateItemIndex ( ) : void
updateItemList ( ) : void
updatePadding ( ) : void
updatePadding ( int spacingBetweenX, int spacingBetweenY ) : void
updateSlotAmount ( ) : void
updateSlotAmount ( int width, int height ) : void
updateSlotSize ( ) : void
updateSlotSize ( int slotSize ) : void

비공개 메소드들

메소드 설명
Start ( ) : void
Update ( ) : void
menuItemCreateInventory ( ) : void
updateItemSize ( ) : void

메소드 상세

ConsumeItem() 공개 메소드

public ConsumeItem ( Item, item ) : void
item Item,
리턴 void

EquiptItem() 공개 메소드

public EquiptItem ( Item item ) : void
item Item
리턴 void

OnUpdateItemList() 공개 메소드

public OnUpdateItemList ( ) : void
리턴 void

UnEquipItem1() 공개 메소드

public UnEquipItem1 ( Item item ) : void
item Item
리턴 void

addAllItemsToInventory() 공개 메소드

public addAllItemsToInventory ( ) : void
리턴 void

addItemToInventory() 공개 메소드

public addItemToInventory ( int id, UInt64 itemUUID, int value ) : GameObject
id int
itemUUID UInt64
value int
리턴 GameObject

addItemToInventory() 공개 메소드

public addItemToInventory ( int itemId, UInt64 itemUUID, int value, int itemIndex ) : GameObject
itemId int
itemUUID UInt64
value int
itemIndex int
리턴 GameObject

addItemToInventory() 공개 메소드

public addItemToInventory ( int id, int value ) : GameObject
id int
value int
리턴 GameObject

addItemToInventory() 공개 메소드

public addItemToInventory ( int id ) : void
id int
리턴 void

addItemToInventory() 공개 메소드

public addItemToInventory ( int ignoreSlot, int itemID, int itemValue ) : void
ignoreSlot int
itemID int
itemValue int
리턴 void

addItemToInventoryStorage() 공개 메소드

public addItemToInventoryStorage ( int itemID, int value ) : void
itemID int
value int
리턴 void

adjustInventorySize() 공개 메소드

public adjustInventorySize ( ) : void
리턴 void

changeInventoryPanelDesign() 공개 메소드

public changeInventoryPanelDesign ( Image image ) : void
image Image
리턴 void

characterSystem() 공개 메소드

public characterSystem ( ) : bool
리턴 bool

checkIfAllInventoryClosed() 공개 메소드

public checkIfAllInventoryClosed ( ) : void
리턴 void

checkIfItemAllreadyExist() 공개 메소드

public checkIfItemAllreadyExist ( int itemID, int itemValue ) : bool
itemID int
itemValue int
리턴 bool

closeInventory() 공개 메소드

public closeInventory ( ) : void
리턴 void

deleteAllItems() 공개 메소드

public deleteAllItems ( ) : void
리턴 void

deleteItem() 공개 메소드

public deleteItem ( Item item ) : void
item Item
리턴 void

deleteItemByIndex() 공개 메소드

public deleteItemByIndex ( Int32 index ) : void
index Int32
리턴 void

deleteItemFromInventory() 공개 메소드

public deleteItemFromInventory ( Item item ) : void
item Item
리턴 void

deleteItemFromInventoryWithGameObject() 공개 메소드

public deleteItemFromInventoryWithGameObject ( Item item ) : void
item Item
리턴 void

getFirstEmptyItemIndex() 공개 메소드

public getFirstEmptyItemIndex ( ) : int
리턴 int

getItemGameObject() 공개 메소드

public getItemGameObject ( Item item ) : GameObject
item Item
리턴 GameObject

getItemGameObject() 공개 메소드

public getItemGameObject ( int itemId ) : GameObject
itemId int
리턴 GameObject

getItemGameObjectByName() 공개 메소드

public getItemGameObjectByName ( Item item ) : GameObject
item Item
리턴 GameObject

getItemList() 공개 메소드

public getItemList ( ) : List
리턴 List

getPositionOfItem() 공개 메소드

public getPositionOfItem ( Item item ) : int
item Item
리턴 int

getPrefabs() 공개 메소드

public getPrefabs ( ) : void
리턴 void

openInventory() 공개 메소드

public openInventory ( ) : void
리턴 void

setAsMain() 공개 메소드

public setAsMain ( ) : void
리턴 void

setDefaultSettings() 공개 메소드

public setDefaultSettings ( ) : void
리턴 void

setImportantVariables() 공개 메소드

public setImportantVariables ( ) : void
리턴 void

sortItems() 공개 메소드

public sortItems ( ) : void
리턴 void

stackableSettings() 공개 메소드

public stackableSettings ( ) : void
리턴 void

stackableSettings() 공개 메소드

public stackableSettings ( bool stackable, Vector3 posi ) : void
stackable bool
posi Vector3
리턴 void

updateIconSize() 공개 메소드

public updateIconSize ( ) : void
리턴 void

updateIconSize() 공개 메소드

public updateIconSize ( int iconSize ) : void
iconSize int
리턴 void

updateItemIndex() 공개 메소드

public updateItemIndex ( ) : void
리턴 void

updateItemList() 공개 메소드

public updateItemList ( ) : void
리턴 void

updatePadding() 공개 메소드

public updatePadding ( ) : void
리턴 void

updatePadding() 공개 메소드

public updatePadding ( int spacingBetweenX, int spacingBetweenY ) : void
spacingBetweenX int
spacingBetweenY int
리턴 void

updateSlotAmount() 공개 메소드

public updateSlotAmount ( ) : void
리턴 void

updateSlotAmount() 공개 메소드

public updateSlotAmount ( int width, int height ) : void
width int
height int
리턴 void

updateSlotSize() 공개 메소드

public updateSlotSize ( ) : void
리턴 void

updateSlotSize() 공개 메소드

public updateSlotSize ( int slotSize ) : void
slotSize int
리턴 void