C# Class UnityPlatformer.CharacterActionPull

Push objects (Box) NOTE require CharacterActionGroundMovement
Inheritance: CharacterAction
Mostrar archivo Open project: llafuente/unity-platformer

Public Methods

Method Description
GainControl ( float delta ) : void

EnterState

GetPostUpdateActions ( ) : PostUpdateActions

default

LoseControl ( float delta ) : void

ExitState

OnAfterMove ( Character ch, float delta ) : void

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

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

Move Character, because the magic is in OnAfterMove

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

Move a Box

WantsToUpdate ( float delta ) : int

Method Details

GainControl() public method

EnterState
public GainControl ( float delta ) : void
delta float
return void

GetPostUpdateActions() public method

default
public GetPostUpdateActions ( ) : PostUpdateActions
return PostUpdateActions

LoseControl() public method

ExitState
public LoseControl ( float delta ) : void
delta float
return void

OnAfterMove() public method

Move the Box after moving the character, so there is a gap between them
public OnAfterMove ( Character ch, float delta ) : void
ch Character
delta float
return void

OnEnable() public method

public OnEnable ( ) : void
return void

PerformAction() public method

Move Character, because the magic is in OnAfterMove
public PerformAction ( float delta ) : void
delta float
return void

PullBox() public method

Move a Box
public PullBox ( Vector3 velocity, Directions dir, float delta ) : void
velocity Vector3
dir Directions
delta float
return void

WantsToUpdate() public method

public WantsToUpdate ( float delta ) : int
delta float
return int