C# Class PlayerDirector.ActiveSession, PaperCowboys

Active session properties
ファイルを表示 Open project: Gamieon/PaperCowboys

Public Methods

Method 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 method

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

HasWeapon() public static method

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

IncreaseAmmo() public static method

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

ResetPlayerMunitions() public static method

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
return void

SetAmmo() public static method

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

SetHasWeapon() public static method

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