PatronPanelUI
Overview
Header-side panel that shows ability racks for the currently selected personality and a Reroll button (Mobster-only). Auto-hides when the Event panel opens and re-shows when it closes.
Serialized
- IntVariable
selectedPersonality - ChairmanEventEvent
openEventPanel - VoidEvent
eventPanelClosed - DOTweenAnimation
hidePanelTween - GameObject
mobsterAbilityRack,schemerAbilityRack,suberfugeAbilityRack,rerollButton
Behavior
- Start()
- Initialize from
selectedPersonality(fallback0if-1) and register listeners. - Subscribe to
openEventPanel→ hide, andeventPanelClosed→ show.
- Initialize from
- OnHideShowButtonPressed() toggles the panel using
HidePatronPaneltween id. - OnPersonalityChanged(int p) toggles which rack is visible and shows Reroll only for Mobster.
- OnDestroy() unregisters all listeners.