C# Class UnityPlatformer.CharacterActionMelee

Melee attack NOTE Can't be interrupted atm
Inheritance: CharacterActionTimed
Datei anzeigen Open project: llafuente/unity-platformer

Public Properties

Property Type Description
action string
damageAreas MeleeDamage[]

Public Methods

Method Description
EndAction ( ) : void

ExitState

GetPostUpdateActions ( ) : PostUpdateActions
OnActionDown ( string _action ) : void

input.onActionDown callabck

OnActionUp ( string _action ) : void

input.onActionUp callabck

OnEnable ( ) : void
PerformAction ( float delta ) : void
Reset ( ) : void

Disable all areas

StartAction ( ) : void

EnterState

WantsToUpdate ( float delta ) : int

attackHeld & and previous attack ended TODO REVIEW continous attack ?

Method Details

EndAction() public method

ExitState
public EndAction ( ) : void
return void

GetPostUpdateActions() public method

public GetPostUpdateActions ( ) : PostUpdateActions
return PostUpdateActions

OnActionDown() public method

input.onActionDown callabck
public OnActionDown ( string _action ) : void
_action string
return void

OnActionUp() public method

input.onActionUp callabck
public OnActionUp ( string _action ) : void
_action string
return void

OnEnable() public method

public OnEnable ( ) : void
return void

PerformAction() public method

public PerformAction ( float delta ) : void
delta float
return void

Reset() public method

Disable all areas
public Reset ( ) : void
return void

StartAction() public method

EnterState
public StartAction ( ) : void
return void

WantsToUpdate() public method

attackHeld & and previous attack ended TODO REVIEW continous attack ?
public WantsToUpdate ( float delta ) : int
delta float
return int

Property Details

action public_oe property

Input action name
public string action
return string

damageAreas public_oe property

List of Damage areas, something like moving hitboxes
public MeleeDamage[] damageAreas
return MeleeDamage[]