Skip to main content

PlayingToCustomizationTransition

A class in Root.Township, Alta.PlayerStates.Transitions.

Sends a playing player back to the customization room. Fired from outside with ExternalTrigger, for example by FromPlayingToCustomization.

Constructors​

MemberWhat it is
PlayingToCustomizationTransition()Creates a PlayingToCustomizationTransition with default values.

Events​

1 private and internal event
MemberWhat it is
private static event Action<IPlayer> triggerStatic event every active instance listens on; ExternalTrigger raises it.

Methods​

MemberWhat it is
static void ExternalTrigger(IPlayer player)Static: runs the transition for the given player.
void TriggerTransition(IPlayer player)Runs the transition if the given player is this transition's player.
protected override void AddListeners()Subscribes to the static trigger event.
protected override void RemoveListeners()Unsubscribes from the trigger event.
protected override IPlayerState TransitionToDestinationState()Server: saves the player, sets their respawn spot to a finish-recustomization spawn and destroys their body, then switches state.

Used in​

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