C# Class PlayerDirector.ActiveSession, PaperCowboys

Active session properties
Afficher le fichier Open project: Gamieon/PaperCowboys

Méthodes publiques

Méthode Description
GetAmmo ( WeaponDirector, weapon ) : int

Gets the player's active ammo.

HasWeapon ( WeaponDirector, weapon ) : bool

Determines if this player has a weapon in this active sesson

IncreaseAmmo ( WeaponDirector, weapon, int ammoAmount ) : void

Increases the player's active ammo.

ResetPlayerMunitions ( ) : void

Takes all bullets and weapons away from the player. A session within the Unity editor self will give the player all weapons and ammo.

SetAmmo ( WeaponDirector, weapon, int ammoAmount ) : void

Sets the player's active ammo.

SetHasWeapon ( WeaponDirector, weapon, bool hasWeapon ) : void

Gives or takes a weapon from the player

Method Details

GetAmmo() public static méthode

Gets the player's active ammo.
public static GetAmmo ( WeaponDirector, weapon ) : int
weapon WeaponDirector, /// Weapon. ///
Résultat int

HasWeapon() public static méthode

Determines if this player has a weapon in this active sesson
public static HasWeapon ( WeaponDirector, weapon ) : bool
weapon WeaponDirector, /// If set to true weapon. ///
Résultat bool

IncreaseAmmo() public static méthode

Increases the player's active ammo.
public static IncreaseAmmo ( WeaponDirector, weapon, int ammoAmount ) : void
weapon WeaponDirector, /// Weapon. ///
ammoAmount int
Résultat void

ResetPlayerMunitions() public static méthode

Takes all bullets and weapons away from the player. A session within the Unity editor self will give the player all weapons and ammo.
public static ResetPlayerMunitions ( ) : void
Résultat void

SetAmmo() public static méthode

Sets the player's active ammo.
public static SetAmmo ( WeaponDirector, weapon, int ammoAmount ) : void
weapon WeaponDirector, /// Weapon. ///
ammoAmount int
Résultat void

SetHasWeapon() public static méthode

Gives or takes a weapon from the player
public static SetHasWeapon ( WeaponDirector, weapon, bool hasWeapon ) : void
weapon WeaponDirector, /// Weapon. ///
hasWeapon bool /// Has weapon. ///
Résultat void