C# Класс UnityPlatformer.CharacterActionPush

Push objects (Box) NOTE require CharacterActionGroundMovement
Наследование: CharacterAction
Показать файл Открыть проект

Открытые методы

Метод Описание
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?

Описание методов

GainControl() публичный Метод

EnterState and start centering
public GainControl ( float delta ) : void
delta float
Результат void

GetPostUpdateActions() публичный Метод

default
public GetPostUpdateActions ( ) : PostUpdateActions
Результат PostUpdateActions

LoseControl() публичный Метод

EnterState and start centering
public LoseControl ( float delta ) : void
delta float
Результат void

OnBeforeMove() публичный Метод

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
Результат void

OnEnable() публичный Метод

public OnEnable ( ) : void
Результат void

PerformAction() публичный Метод

Move Character, because the magic is in OnBeforeMove
public PerformAction ( float delta ) : void
delta float
Результат void

PushBox() публичный Метод

Move a Box
public PushBox ( Vector3 velocity, Directions dir, float delta ) : void
velocity Vector3
dir Directions
delta float
Результат void

WantsToUpdate() публичный Метод

Pushing and object enough time?
public WantsToUpdate ( float delta ) : int
delta float
Результат int