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.
- Listed in Players and characters
- Inherits or implements
StateTransition<PlayingState, CustomizationState>
Constructors
| Member | What it is |
|---|---|
PlayingToCustomizationTransition() | Creates a PlayingToCustomizationTransition with default values. |
Events
1 private and internal event
| Member | What it is |
|---|---|
private static event Action<IPlayer> trigger | Static event every active instance listens on; ExternalTrigger raises it. |
Methods
| Member | What 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: