A class in Root.Township, ATT.Respawn.
The global respawn shrine. Touching it resets the player's respawn back to the global spawn.
Constructors
| Member | What it is |
|---|
GlobalRespawnShrine() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
1 private and internal field
| Member | What it is |
|---|
private RespawnShrineData shrineSettings | The shrine data asset for this shrine. |
Properties
| Member | What it is |
|---|
protected override Guid ShrineId { get; } | The shrine's ID from its shrine data. |
Methods
| Member | What 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. |