C# Class DamageRule, urban-survivors

Inheritance: MonoBehaviour
Mostra file Open project: exdev/urban-survivors Class Usage Examples

Public Properties

Property Type Description
hitAnimList string[]
knockBackForceList float[]

Protected Properties

Property Type Description
instance DamageRule,
knockBackTypeToForce float>.Dictionary
stunTypeToAnim string>.Dictionary

Public Methods

Method Description
Awake ( ) : void
CalculateDamage ( ActorInfo, _defender, DamageInfo, _dmgInfo ) : float
HitAnim ( HitInfo, _type ) : string
Instance ( ) : DamageRule,
KnockBackForce ( DamageInfo, _type ) : float

Private Methods

Method Description
SolidBulletDamage ( ActorInfo, _defender, DamageInfo, _dmgInfo ) : float
SolidMeleeDamage ( ActorInfo, _defender, DamageInfo, _dmgInfo ) : float

Method Details

Awake() public method

public Awake ( ) : void
return void

CalculateDamage() public method

public CalculateDamage ( ActorInfo, _defender, DamageInfo, _dmgInfo ) : float
_defender ActorInfo,
_dmgInfo DamageInfo,
return float

HitAnim() public method

public HitAnim ( HitInfo, _type ) : string
_type HitInfo,
return string

Instance() public static method

public static Instance ( ) : DamageRule,
return DamageRule,

KnockBackForce() public method

public KnockBackForce ( DamageInfo, _type ) : float
_type DamageInfo,
return float

Property Details

hitAnimList public_oe property

public string[] hitAnimList
return string[]

instance protected_oe static_oe property

protected static DamageRule, instance
return DamageRule,

knockBackForceList public_oe property

public float[] knockBackForceList
return float[]

knockBackTypeToForce protected_oe property

protected Dictionary knockBackTypeToForce
return float>.Dictionary

stunTypeToAnim protected_oe property

protected Dictionary stunTypeToAnim
return string>.Dictionary