C# Класс PlayerDirector.ActiveSession, PaperCowboys

Active session properties
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

GetAmmo() публичный статический Метод

Gets the player's active ammo.
public static GetAmmo ( WeaponDirector, weapon ) : int
weapon WeaponDirector, /// Weapon. ///
Результат int

HasWeapon() публичный статический Метод

Determines if this player has a weapon in this active sesson
public static HasWeapon ( WeaponDirector, weapon ) : bool
weapon WeaponDirector, /// If set to true weapon. ///
Результат bool

IncreaseAmmo() публичный статический Метод

Increases the player's active ammo.
public static IncreaseAmmo ( WeaponDirector, weapon, int ammoAmount ) : void
weapon WeaponDirector, /// Weapon. ///
ammoAmount int
Результат void

ResetPlayerMunitions() публичный статический Метод

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
Результат void

SetAmmo() публичный статический Метод

Sets the player's active ammo.
public static SetAmmo ( WeaponDirector, weapon, int ammoAmount ) : void
weapon WeaponDirector, /// Weapon. ///
ammoAmount int
Результат void

SetHasWeapon() публичный статический Метод

Gives or takes a weapon from the player
public static SetHasWeapon ( WeaponDirector, weapon, bool hasWeapon ) : void
weapon WeaponDirector, /// Weapon. ///
hasWeapon bool /// Has weapon. ///
Результат void