Skip to main content

LocomotionModifierVolumeTrigger

A class in Root.Township, the global namespace.

Volume trigger that applies a LocomotionModifierCheck to players while they are inside it.

Constructors​

MemberWhat it is
LocomotionModifierVolumeTrigger()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

1 private and internal field
MemberWhat it is
private LocomotionModifierCheck checkThe locomotion modifier to apply.

Properties​

MemberWhat it is
override bool IsCheckingForPlayer { get; }Always true; this volume reacts to players.

Methods​

MemberWhat it is
protected override void PlayerEntered(SmoothLocomotionPlayerController player)Applies the check to the entering player.
protected override void PlayerLeft(SmoothLocomotionPlayerController player)Removes the check from the leaving player.