Skip to main content

GlobalRespawnShrine

A class in Root.Township, ATT.Respawn.

The global respawn shrine. Touching it resets the player's respawn back to the global spawn.

Constructors​

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

Fields​

1 private and internal field
MemberWhat it is
private RespawnShrineData shrineSettingsThe shrine data asset for this shrine.

Properties​

MemberWhat it is
protected override Guid ShrineId { get; }The shrine's ID from its shrine data.

Methods​

MemberWhat it is
override void OnSetSpawnPointToggle(IPlayer player)Server: plays the subscribe sound for the chunk and removes the player from their current shrine.
protected override void OnInteractionFilter(Interactor interactor, Interactable interactable, ref bool result)Only allows the touch when the player's active shrine isn't already this one.
protected override void OnModelChanged(IRespawnSystemModel model)Client: colours the glyph by whether the local player is on the global shrine.