/// /// Mode 2: the player stands still and the mesh is painted with the left mouse /// button. The camera orbits only while the right mouse button is held, so /// dragging with the left button paints instead of rotating the view. /// public class PaintMode : GameMode { public override string DisplayName => "Paint"; public override void Enter() { if (Manager.Player != null) Manager.Player.ControlEnabled = false; if (Manager.CameraInput != null) Manager.CameraInput.LookMode = ThirdPersonOrbitInput.OrbitLookMode.HoldRightMouseButton; if (Manager.Painter != null) Manager.Painter.PaintingEnabled = true; } }