C# Class PlayerInventory, TestGame

Inheritance: MonoBehaviour
Exibir arquivo Open project: liuxq/TestGame Class Usage Examples

Public Properties

Property Type Description
HPMANACanvas GameObject
characterSystem GameObject
craftSystem GameObject
currentHealth float
inventory GameObject

Public Methods

Method Description
EquipWeapon ( Item item ) : void
OnBackpack ( Item item ) : void
OnConsumeItem ( Item item ) : void
OnDisable ( ) : void
OnEnable ( ) : void
OnGearItem ( Item item ) : void
OnUnEquipItem ( Item item ) : void
Start ( ) : void
UnEquipBackpack ( Item item ) : void
UnEquipWeapon ( Item item ) : void
Update ( ) : void
changeInventorySize ( int size ) : void
dropTheRestItems ( int size ) : void

Method Details

EquipWeapon() public method

public EquipWeapon ( Item item ) : void
item Item
return void

OnBackpack() public method

public OnBackpack ( Item item ) : void
item Item
return void

OnConsumeItem() public method

public OnConsumeItem ( Item item ) : void
item Item
return void

OnDisable() public method

public OnDisable ( ) : void
return void

OnEnable() public method

public OnEnable ( ) : void
return void

OnGearItem() public method

public OnGearItem ( Item item ) : void
item Item
return void

OnUnEquipItem() public method

public OnUnEquipItem ( Item item ) : void
item Item
return void

Start() public method

public Start ( ) : void
return void

UnEquipBackpack() public method

public UnEquipBackpack ( Item item ) : void
item Item
return void

UnEquipWeapon() public method

public UnEquipWeapon ( Item item ) : void
item Item
return void

Update() public method

public Update ( ) : void
return void

changeInventorySize() public method

public changeInventorySize ( int size ) : void
size int
return void

dropTheRestItems() public method

public dropTheRestItems ( int size ) : void
size int
return void

Property Details

HPMANACanvas public_oe property

public GameObject HPMANACanvas
return GameObject

characterSystem public_oe property

public GameObject characterSystem
return GameObject

craftSystem public_oe property

public GameObject craftSystem
return GameObject

currentHealth public_oe property

public float currentHealth
return float

inventory public_oe property

public GameObject inventory
return GameObject