提交脚本

This commit is contained in:
2026-03-22 21:35:27 +08:00
parent 72ba740c29
commit 685cfbc809
2 changed files with 9 additions and 1 deletions

View File

@@ -55,7 +55,7 @@ namespace NBF
} }
} }
private float _floatLength = 0.3f; private float _floatLength = 0.7f;
/// <summary> /// <summary>
/// 浮漂线长度 /// 浮漂线长度

View File

@@ -95,6 +95,9 @@ public class BobberPresentationController : MonoBehaviour
[Tooltip("触底后减少的下沉量(例如铅坠到底,漂会回升一点)")] public float bottomTouchLift = 0.01f; [Tooltip("触底后减少的下沉量(例如铅坠到底,漂会回升一点)")] public float bottomTouchLift = 0.01f;
[Header("Debug Input")] [Tooltip("调试:按 R 恢复默认")]
public bool debugResetKey = true;
[Header("Debug Input")] [Tooltip("调试:按 T 触发轻点")] [Header("Debug Input")] [Tooltip("调试:按 T 触发轻点")]
public bool debugTapKey = true; public bool debugTapKey = true;
@@ -529,6 +532,11 @@ public class BobberPresentationController : MonoBehaviour
if (!Application.isPlaying) if (!Application.isPlaying)
return; return;
if (debugResetKey && Input.GetKeyDown(KeyCode.R))
{
StopBite();
}
if (debugTapKey && Input.GetKeyDown(KeyCode.T)) if (debugTapKey && Input.GetKeyDown(KeyCode.T))
PlayTap(); PlayTap();