Свойство | Type | Description | |
---|---|---|---|
disableDownRayCast | bool | ||
onReachWaypoint | ReachWaypoint | ||
onResume | System.Action | ||
onStop | System.Action | ||
path | Line | ||
speed | float | ||
startStopped | bool |
Méthode | Description | |
---|---|---|
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
|
Méthode | Description | |
---|---|---|
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 | |
Résultat | void |
public DoAction ( MovingPlatformActions action ) : void | ||
action | MovingPlatformActions | |
Résultat | void |
public LatePlatformerUpdate ( float delta ) : void | ||
delta | float | |
Résultat | void |
public MovePassengers ( bool beforeMovePlatform ) : void | ||
beforeMovePlatform | bool | |
Résultat | void |
public PlatformerUpdate ( float delta ) : void | ||
delta | float | |
Résultat | void |