C# Class PlayerBase, urban-survivors

Inheritance: MonoBehaviour
Mostrar archivo Open project: exdev/urban-survivors Class Usage Examples

Public Properties

Property Type Description
FX_HIT_bite GameObject
playerInfo PlayerInfo,
weaponAnchor Transform

Protected Properties

Property Type Description
curWeapon GameObject
fxHitBite GameObject
isGod bool
weapon1 GameObject
weapon2 GameObject

Public Methods

Method Description
AsGod ( bool _isGod ) : void
ChangeWeapon ( WeaponBase, _id ) : void
GetAttackInfo ( ) : AttackInfo,
GetDamageInfo ( ) : DamageInfo,
GetShootInfo ( ) : ShootInfo,
noHP ( ) : bool

Protected Methods

Method Description
ApplyDamage ( Collider _other ) : bool
Awake ( ) : void
SetCurWeaponOwner ( ) : void
Start ( ) : void
Update ( ) : void
WaitForRecover ( ) : IEnumerator

Private Methods

Method Description
InitInfo ( ) : void

Method Details

ApplyDamage() protected method

protected ApplyDamage ( Collider _other ) : bool
_other Collider
return bool

AsGod() public method

public AsGod ( bool _isGod ) : void
_isGod bool
return void

Awake() protected method

protected Awake ( ) : void
return void

ChangeWeapon() public method

public ChangeWeapon ( WeaponBase, _id ) : void
_id WeaponBase,
return void

GetAttackInfo() public method

public GetAttackInfo ( ) : AttackInfo,
return AttackInfo,

GetDamageInfo() public method

public GetDamageInfo ( ) : DamageInfo,
return DamageInfo,

GetShootInfo() public method

public GetShootInfo ( ) : ShootInfo,
return ShootInfo,

SetCurWeaponOwner() protected method

protected SetCurWeaponOwner ( ) : void
return void

Start() protected method

protected Start ( ) : void
return void

Update() protected method

protected Update ( ) : void
return void

WaitForRecover() protected method

protected WaitForRecover ( ) : IEnumerator
return IEnumerator

noHP() public method

public noHP ( ) : bool
return bool

Property Details

FX_HIT_bite public_oe property

public GameObject FX_HIT_bite
return GameObject

curWeapon protected_oe property

protected GameObject curWeapon
return GameObject

fxHitBite protected_oe static_oe property

protected static GameObject fxHitBite
return GameObject

isGod protected_oe property

protected bool isGod
return bool

playerInfo public_oe property

public PlayerInfo, playerInfo
return PlayerInfo,

weapon1 protected_oe property

protected GameObject weapon1
return GameObject

weapon2 protected_oe property

protected GameObject weapon2
return GameObject

weaponAnchor public_oe property

public Transform weaponAnchor
return Transform