C# Class UnityPlatformer.CharacterActionPush

Push objects (Box) NOTE require CharacterActionGroundMovement
Inheritance: CharacterAction
Afficher le fichier Open project: llafuente/unity-platformer

Méthodes publiques

Méthode Description
GainControl ( float delta ) : void

EnterState and start centering

GetPostUpdateActions ( ) : PostUpdateActions

default

LoseControl ( float delta ) : void

EnterState and start centering

OnBeforeMove ( Character ch, float delta ) : void

Move the Box before moving the character so there is a gap between them

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

Move Character, because the magic is in OnBeforeMove

PushBox ( Vector3 velocity, Directions dir, float delta ) : void

Move a Box

WantsToUpdate ( float delta ) : int

Pushing and object enough time?

Method Details

GainControl() public méthode

EnterState and start centering
public GainControl ( float delta ) : void
delta float
Résultat void

GetPostUpdateActions() public méthode

default
public GetPostUpdateActions ( ) : PostUpdateActions
Résultat PostUpdateActions

LoseControl() public méthode

EnterState and start centering
public LoseControl ( float delta ) : void
delta float
Résultat void

OnBeforeMove() public méthode

Move the Box before moving the character so there is a gap between them
public OnBeforeMove ( Character ch, float delta ) : void
ch Character
delta float
Résultat void

OnEnable() public méthode

public OnEnable ( ) : void
Résultat void

PerformAction() public méthode

Move Character, because the magic is in OnBeforeMove
public PerformAction ( float delta ) : void
delta float
Résultat void

PushBox() public méthode

Move a Box
public PushBox ( Vector3 velocity, Directions dir, float delta ) : void
velocity Vector3
dir Directions
delta float
Résultat void

WantsToUpdate() public méthode

Pushing and object enough time?
public WantsToUpdate ( float delta ) : int
delta float
Résultat int