RegionPanel
Overview
Thin UI façade that checks affordability against Atom variables and plays MoreMountains.Feedbacks when the player presses Add Lab, Upgrade Lab, or Add Route. Also toggles the route placement mode flag. fileciteturn15file0
Atoms
moneyAmount,laboratoryCost,upgradeLabCost,routeCost,routeModeEnabled
Buttons
- AddLabButtonPressed()
- If
moneyAmount > laboratoryCost→ success feedbacks, else failure feedbacks.
- If
- UpgradeLabButtonPressed()
- If
moneyAmount > upgradeLabCost→ success feedbacks, else failure feedbacks.
- If
- AddRouteButtonPressed()
- If
routeModeEnabled == falseandmoneyAmount > routeCost→ setsrouteModeEnabled = trueand plays enabled feedbacks; otherwise plays failed feedbacks. - If
routeModeEnabled == true→ setsrouteModeEnabled = falseand plays disabled feedbacks. fileciteturn15file0
- If
Integration Notes
Wire the five Atom references and the six MMF_Player feedback sets in the Inspector. The class itself doesn’t create Labs/Routes; it only drives feedback and a placement toggle used elsewhere. fileciteturn15file0