Skip to main content

TeleportAwareTriggerExample

An abstract class in Root.Township, the global namespace.

Example ITeleportAwareTrigger that logs when a player teleports through the trigger.

Constructors​

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

Methods​

MemberWhat it is
void OnTriggerExit(Collider other)Does nothing.
void OnTriggerTeleportedThrough(IPlayer player)Logs the player that teleported through.