C# Class Assets.Scripts.Player.PlayerAmmo

Inheritance: UnityEngine.MonoBehaviour
Afficher le fichier Open project: EricFreeman/DungeonGame Class Usage Examples

Méthodes publiques

Свойство Type Description
CollectedWeapons List
CurrentWeapon UnityEngine.GameObject
Hand UnityEngine.GameObject
WeaponList List

Méthodes publiques

Méthode 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 méthode

public AddAmmo ( AmmoType ammoType, int amount ) : void
ammoType AmmoType
amount int
Résultat void

CollectWeapon() public méthode

public CollectWeapon ( int weaponId ) : void
weaponId int
Résultat void

GetAmmo() public méthode

public GetAmmo ( AmmoType ammoType ) : int
ammoType AmmoType
Résultat int

HasAmmo() public méthode

public HasAmmo ( AmmoType ammoType, int amount ) : bool
ammoType AmmoType
amount int
Résultat bool

HasWeapon() public méthode

public HasWeapon ( int weaponId ) : bool
weaponId int
Résultat bool

RemoveAmmo() public méthode

public RemoveAmmo ( AmmoType ammoType, int amount ) : void
ammoType AmmoType
amount int
Résultat void

Start() public méthode

public Start ( ) : void
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void

Property Details

CollectedWeapons public_oe property

public List CollectedWeapons
Résultat List

CurrentWeapon public_oe property

public GameObject,UnityEngine CurrentWeapon
Résultat UnityEngine.GameObject

Hand public_oe property

public GameObject,UnityEngine Hand
Résultat UnityEngine.GameObject

WeaponList public_oe property

public List WeaponList
Résultat List