Skip to main content

FromPlayingToCustomization

A class in Root.Township, the global namespace.

Sends a player from the game back to character customization, after a fade to black. Clients ask the server, which runs the transition.

Constructors​

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

Fields​

1 private and internal field
MemberWhat it is
private MethodSync syncPlayerMethod sync used for the request.

Methods​

MemberWhat it is
override void Initialize()Sets up the sync message.
void ReturnToCustomization(PlayerController playerController)For a living local player, fades to black then triggers the transition (directly on the server, by message on a client).
1 private and internal method
MemberWhat it is
private void SyncPlayer(IPlayer player, Stream stream)Server: triggers PlayingToCustomizationTransition for the sending player.