Reorganize scripts into subfolders by responsibility
Move scripts under Assets/Scripts/ into Components, GameMode, Helper, Network, Enum, Struct and ScriptableObject folders. Pure file moves (plus folder .meta files); no code changes. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
1 parent
382bfb36df
commit
e23fae0c50
126 files changed
+112
No files matched your search
@@ -0,0 +1,29 @@
|
||||
/// <summary>
|
||||
/// Player stands still, the mesh is painted with the left mouse button. The
|
||||
/// camera orbits only while the right mouse button is held, and the middle
|
||||
/// mouse button pans the framing (a temporary offset to line up the model).
|
||||
/// </summary>
|
||||
public class PaintMode : GameMode
|
||||
{
|
||||
public override string DisplayName => "Paint";
|
||||
|
||||
public override void Enter()
|
||||
{
|
||||
SetPlayerControl(false);
|
||||
|
||||
if (Manager.CameraInput)
|
||||
{
|
||||
Manager.CameraInput.LookMode = ThirdPersonOrbitInput.OrbitLookMode.HoldRightMouseButton;
|
||||
Manager.CameraInput.PanEnabled = true;
|
||||
}
|
||||
|
||||
SetPainting(true);
|
||||
}
|
||||
|
||||
public override void Exit()
|
||||
{
|
||||
// Leaving paint mode releases the middle-mouse pan; the orbit input then eases the framing home.
|
||||
if (Manager.CameraInput)
|
||||
Manager.CameraInput.PanEnabled = false;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user