LocomotionModifierCheck
An abstract class in Root.Township, the global namespace.
Asset with rules for a LocomotionModifier area: what happens when a player enters or leaves, and where they may teleport. Examples are DepthCheckLocoCheck and EnterLocomotionCheck.
- Listed in Global namespace: I to L
- Inherits or implements
ScriptableObject - Derived types
DepthCheckLocoCheck,EnterLocomotionCheck
Constructors
| Member | What it is |
|---|---|
protected LocomotionModifierCheck() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Methods
| Member | What it is |
|---|---|
abstract void Enter(SmoothLocomotionPlayerController player, Bounds bounds) | Called when a player enters the area. |
abstract bool IsValidTeleportationPosition(Vector3 position, PlayerController player, Bounds bounds) | Whether a player may teleport to this position inside the area. |
abstract void Leave(SmoothLocomotionPlayerController player, Bounds bounds) | Called when a player leaves the area. |
Used in
Members of other types that take, return or hold a LocomotionModifierCheck: