C# Class UnityPlatformer.HitBox

Inheritance: UnityEngine.MonoBehaviour
Show file Open project: llafuente/unity-platformer Class Usage Examples

Public Properties

Property Type Description
dealDamageToSelf bool
part CharacterPart
type HitBoxType

Public Methods

Method Description
IsDisabled ( ) : bool

Return if the HitBox is disabled base on disableWhileOnState

OnTriggerEnter2D ( Collider2D o ) : void

I'm a DealDamage, o is RecieveDamage, then Deal Damage to it's owner!

Start ( ) : void

check missconfigurations and initialize

Private Methods

Method Description
OnDrawGizmos ( ) : void

Method Details

IsDisabled() public method

Return if the HitBox is disabled base on disableWhileOnState
public IsDisabled ( ) : bool
return bool

OnTriggerEnter2D() public method

I'm a DealDamage, o is RecieveDamage, then Deal Damage to it's owner!
public OnTriggerEnter2D ( Collider2D o ) : void
o UnityEngine.Collider2D
return void

Start() public method

check missconfigurations and initialize
public Start ( ) : void
return void

Property Details

dealDamageToSelf public property

Can i deal damage to myself?
public bool dealDamageToSelf
return bool

part public property

Character part this HitBox belong
public CharacterPart part
return CharacterPart

type public property

HitBoxType
public HitBoxType type
return HitBoxType