PersonalitySelectorUI

Overview

Carousel UI to pick the Chairman personality (Mobster / Schemer / Subterfuge). Slides three ability cards and their info blocks left/right with DOTween, and updates the global selectedPersonality atom.

Serialized

  • IntVariable selectedPersonality
  • RectTransform leftObj, centerObj, rightObj
  • RectTransform leftInfoObj, centerInfoObj, rightInfoObj
  • float slideDuration (default 0.4f)

Behavior

  • OnRightButtonPressed() / OnLeftButtonPressed()
    Calls MoveAbilitiesRight/Left() and MoveInfoRight/Left(), then increments/decrements selectedPersonality with wrap-around (0..2).
  • MoveAbilitiesRight/Left()
    Cancels tweens, snaps one panel off-screen, animates others to left/center/right (±600, 0) and rotates the references so the new center is tracked.
  • MoveInfoRight/Left()
    Same as abilities for the auxiliary info row (±400, 0).

The script mutates its left*/center*/right* fields to keep the logical positions in sync with the visuals.