C# Class UnityPlatformer.CharacterActionPush

Push objects (Box) NOTE require CharacterActionGroundMovement
Inheritance: CharacterAction
ファイルを表示 Open project: llafuente/unity-platformer

Public Methods

Method 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 method

EnterState and start centering
public GainControl ( float delta ) : void
delta float
return void

GetPostUpdateActions() public method

default
public GetPostUpdateActions ( ) : PostUpdateActions
return PostUpdateActions

LoseControl() public method

EnterState and start centering
public LoseControl ( float delta ) : void
delta float
return void

OnBeforeMove() public method

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
return void

OnEnable() public method

public OnEnable ( ) : void
return void

PerformAction() public method

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

PushBox() public method

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

WantsToUpdate() public method

Pushing and object enough time?
public WantsToUpdate ( float delta ) : int
delta float
return int