Class UICharacterCreation
public class UICharacterCreation : UIPanel, ICloseableUI
- Inheritance
-
objectUICharacterCreation
- Implements
- Inherited Members
Fields
Methods
- ClearPreview()
Removes the preview hero and undoes what showing it changed: the party selection (systems that follow the selected hero - the party camera, UniStorm's weather holder - must not be left pointing at a transform that is about to be destroyed) and UniStorm's PlayerTransform.
- FinalizePreview(string, CharacterClass)
Turns the preview into a real hero: charges the class price, names it, plays the sit animation, adds it to the party and fires HeroCreated.
- ShowPreviewForClass(CharacterClass)
Spawns the preview hero for a class (destroying any previous preview), tells it that it was created and selects it. Returns the spawned hero; CreatedHero also holds it.