C# Class UnityPlatformer.CharacterActionProjectile

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

Méthodes publiques

Свойство Type Description
onFire System.Action
projectiles List

Méthodes publiques

Méthode 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?

Méthodes protégées

Méthode Description
_Fire ( ) : void

Real Fire function, for use with: UpdateManager.SetTimeout

Method Details

Fire() public méthode

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

GetPostUpdateActions() public méthode

public GetPostUpdateActions ( ) : PostUpdateActions
Résultat PostUpdateActions

PerformAction() public méthode

public PerformAction ( float delta ) : void
delta float
Résultat void

WantsToUpdate() public méthode

TODO REVIEW continous fire?
public WantsToUpdate ( float delta ) : int
delta float
Résultat int

_Fire() protected méthode

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

Property Details

onFire public_oe property

Fired when fire a projectile
public Action,System onFire
Résultat System.Action

projectiles public_oe property

List of projectiles
public List projectiles
Résultat List