PersonalityPanelUI
Overview
First-boot personality selection gate. If no personality is chosen (selectedPersonality == -1), it disables time controls and sets a default (0). Once the player confirms, it writes weights to three FloatVariables and closes.
Serialized
- FloatVariable
personalityMobster,personalitySchemer,personalitySubterfuge - IntVariable
selectedPersonality - VoidEvent
disableTimeControlsEvent - UnityEvent
onMenuClosed
Behavior
- Start()
- If uninitialized (
-1):disableTimeControlsEvent.Raise()and setselectedPersonality = 0. - Else: invoke
onMenuClosedand destroy the panel immediately.
- If uninitialized (
- OnPersonalitySelected()
- Sets weights to 0.66 for the chosen personality, 0.33 for the others.
- Invokes
onMenuClosedand destroys the GameObject.