/// /// Free-fly camera mode. The player is frozen and painting is off while a dedicated freecam /// ( + its own CinemachineCamera) flies through the map, colliding /// with world geometry. Orbit camera input is disabled so it doesn't fight for the cursor. /// public class FreeCamMode : GameMode { public override string DisplayName => "Free Cam"; public override void Enter() { // Keep the player component alive (gravity/grounding) but reject input, like Paint mode. SetPlayerControl(false); SetPainting(false); SetOrbitInputEnabled(false); if (Manager.FreeCam) Manager.FreeCam.SetActive(true); } public override void Exit() { // Modes are Enter-only, so freecam must undo its own camera takeover here; the next mode's // Enter restores the player/painter/look-mode state. if (Manager.FreeCam) Manager.FreeCam.SetActive(false); SetOrbitInputEnabled(true); } }