Trim restated narration, dead commented-out code, and oversized class headers; keep all why-comments (authority, timing, edge cases), tooltips, and serialization caveats. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
24 lines
633 B
C#
24 lines
633 B
C#
/// <summary>
|
|
/// Player walks with WASD/Space, the camera orbits freely with the mouse.
|
|
/// Painting is disabled.
|
|
/// </summary>
|
|
public class PlayerControlMode : GameMode
|
|
{
|
|
public override string DisplayName => "Player Control";
|
|
|
|
public override void Enter()
|
|
{
|
|
if (Manager.Player)
|
|
{
|
|
Manager.Player.enabled = true;
|
|
Manager.Player.ControlEnabled = true;
|
|
}
|
|
|
|
if (Manager.CameraInput)
|
|
Manager.CameraInput.LookMode = ThirdPersonOrbitInput.OrbitLookMode.AlwaysActive;
|
|
|
|
if (Manager.Painter)
|
|
Manager.Painter.PaintingEnabled = false;
|
|
}
|
|
}
|