TeleportAwareTriggerExample
An abstract class in Root.Township, the global namespace.
Example ITeleportAwareTrigger that logs when a player teleports through the trigger.
- Listed in Global namespace: T to X
- Inherits or implements
MonoBehaviour,ITeleportAwareTrigger
Constructors
| Member | What it is |
|---|---|
protected TeleportAwareTriggerExample() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Methods
| Member | What it is |
|---|---|
void OnTriggerExit(Collider other) | Does nothing. |
void OnTriggerTeleportedThrough(IPlayer player) | Logs the player that teleported through. |