C# 클래스 PlayerDirector.ActiveSession, PaperCowboys

Active session properties
파일 보기 프로젝트 열기: Gamieon/PaperCowboys

공개 메소드들

메소드 설명
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