C# Class UnityPlatformer.CharacterActionProjectile

Fire projectiles (All or one by one), handles orientation based on the character collisions.faceDir
Inheritance: CharacterAction
Mostra file Open project: llafuente/unity-platformer

Public Properties

Property Type Description
onFire System.Action
projectiles List

Public Methods

Method Description
Fire ( ) : void

Fire projectiles, regardless the cooldown, Call it after all checks

GetPostUpdateActions ( ) : PostUpdateActions
PerformAction ( float delta ) : void
WantsToUpdate ( float delta ) : int

TODO REVIEW continous fire?

Protected Methods

Method Description
_Fire ( ) : void

Real Fire function, for use with: UpdateManager.SetTimeout

Method Details

Fire() public method

Fire projectiles, regardless the cooldown, Call it after all checks
public Fire ( ) : void
return void

GetPostUpdateActions() public method

public GetPostUpdateActions ( ) : PostUpdateActions
return PostUpdateActions

PerformAction() public method

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

WantsToUpdate() public method

TODO REVIEW continous fire?
public WantsToUpdate ( float delta ) : int
delta float
return int

_Fire() protected method

Real Fire function, for use with: UpdateManager.SetTimeout
protected _Fire ( ) : void
return void

Property Details

onFire public_oe property

Fired when fire a projectile
public Action,System onFire
return System.Action

projectiles public_oe property

List of projectiles
public List projectiles
return List