Skip to main content

CustomTeleportation

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

Base for a networked behaviour that replaces the normal teleport logic of a Teleporter. Subclasses decide when a teleport may start and what happens at each end.

Constructors​

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

Methods​

MemberWhat it is
abstract bool Attempt(Teleporter teleporter)Returns whether this teleporter is allowed to teleport now.
abstract void Begin(Teleporter teleporter)Called when a teleport through the given teleporter starts.
abstract void End(Teleporter teleporter)Called when a teleport through the given teleporter finishes.

Used in​

Members of other types that take, return or hold a CustomTeleportation: