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 set selectedPersonality = 0.
    • Else: invoke onMenuClosed and destroy the panel immediately.
  • OnPersonalitySelected()
    • Sets weights to 0.66 for the chosen personality, 0.33 for the others.
    • Invokes onMenuClosed and destroys the GameObject.