C# Class Assets.Scripts.Player.PlayerAmmo

Inheritance: UnityEngine.MonoBehaviour
Datei anzeigen Open project: EricFreeman/DungeonGame Class Usage Examples

Public Properties

Property Type Description
CollectedWeapons List
CurrentWeapon UnityEngine.GameObject
Hand UnityEngine.GameObject
WeaponList List

Public Methods

Method Description
AddAmmo ( AmmoType ammoType, int amount ) : void
CollectWeapon ( int weaponId ) : void
GetAmmo ( AmmoType ammoType ) : int
HasAmmo ( AmmoType ammoType, int amount ) : bool
HasWeapon ( int weaponId ) : bool
RemoveAmmo ( AmmoType ammoType, int amount ) : void
Start ( ) : void
Update ( ) : void

Method Details

AddAmmo() public method

public AddAmmo ( AmmoType ammoType, int amount ) : void
ammoType AmmoType
amount int
return void

CollectWeapon() public method

public CollectWeapon ( int weaponId ) : void
weaponId int
return void

GetAmmo() public method

public GetAmmo ( AmmoType ammoType ) : int
ammoType AmmoType
return int

HasAmmo() public method

public HasAmmo ( AmmoType ammoType, int amount ) : bool
ammoType AmmoType
amount int
return bool

HasWeapon() public method

public HasWeapon ( int weaponId ) : bool
weaponId int
return bool

RemoveAmmo() public method

public RemoveAmmo ( AmmoType ammoType, int amount ) : void
ammoType AmmoType
amount int
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

CollectedWeapons public_oe property

public List CollectedWeapons
return List

CurrentWeapon public_oe property

public GameObject,UnityEngine CurrentWeapon
return UnityEngine.GameObject

Hand public_oe property

public GameObject,UnityEngine Hand
return UnityEngine.GameObject

WeaponList public_oe property

public List WeaponList
return List