Свойство | Тип | Описание | |
---|---|---|---|
disableDownRayCast | bool | ||
onReachWaypoint | ReachWaypoint | ||
onResume | System.Action | ||
onStop | System.Action | ||
path | Line | ||
speed | float | ||
startStopped | bool |
Метод | Описание | |
---|---|---|
CalculatePassengerMovement ( Vector3 velocity ) : void |
Calculate how much each passenger should move
|
|
DoAction ( MovingPlatformActions action ) : void |
Perform an action over MovingPlatform like: Resume, stop, reverse....
|
|
IsStopped ( ) : bool |
Reverse waypoints, current waypoint and percentBetweenWaypoints This is used when reach the end, so we don't need handle both logics
|
|
LatePlatformerUpdate ( float delta ) : void |
Do nothing
|
|
MovePassengers ( bool beforeMovePlatform ) : void |
Move passenger
|
|
OnDisable ( ) : void |
notify UpdateManager
|
|
OnEnable ( ) : void |
notify UpdateManager
|
|
PlatformerUpdate ( float delta ) : void |
Get passenger list, pre update, move and post update
|
|
Resume ( ) : void |
Resume movement with default speed
|
|
Reverse ( ) : void |
Reverse waypoints, current waypoint and percentBetweenWaypoints This is used when reach the end, so we don't need handle both logics
|
|
Start ( ) : void |
Setup initial state
|
|
Stop ( ) : void |
Stop MovingPlatform
|
|
StopOn ( int waypoints ) : void |
TODO
|
Метод | Описание | |
---|---|---|
CalculatePlatformMovement ( float delta ) : Vector3 |
Calculate how much the platform will move NOTE This can't be called without moving the platform
|
|
Ease ( float x ) : float |
Ease movement formula TODO use UnityPlatformer.Easing even when some configuration don't make sense...
|
public CalculatePassengerMovement ( Vector3 velocity ) : void | ||
velocity | Vector3 | |
Результат | void |
public DoAction ( MovingPlatformActions action ) : void | ||
action | MovingPlatformActions | |
Результат | void |
public LatePlatformerUpdate ( float delta ) : void | ||
delta | float | |
Результат | void |
public MovePassengers ( bool beforeMovePlatform ) : void | ||
beforeMovePlatform | bool | |
Результат | void |
public PlatformerUpdate ( float delta ) : void | ||
delta | float | |
Результат | void |