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
|
public static GetAmmo ( WeaponDirector, weapon ) : int | ||
weapon | WeaponDirector, | /// Weapon. /// |
return | int |
public static HasWeapon ( WeaponDirector, weapon ) : bool | ||
weapon | WeaponDirector, |
/// If set to |
return | bool |
public static IncreaseAmmo ( WeaponDirector, weapon, int ammoAmount ) : void | ||
weapon | WeaponDirector, | /// Weapon. /// |
ammoAmount | int | |
return | void |
public static ResetPlayerMunitions ( ) : void | ||
return | void |
public static SetAmmo ( WeaponDirector, weapon, int ammoAmount ) : void | ||
weapon | WeaponDirector, | /// Weapon. /// |
ammoAmount | int | |
return | void |
public static SetHasWeapon ( WeaponDirector, weapon, bool hasWeapon ) : void | ||
weapon | WeaponDirector, | /// Weapon. /// |
hasWeapon | bool | /// Has weapon. /// |
return | void |