提交脚本
This commit is contained in:
@@ -55,7 +55,7 @@ namespace NBF
|
||||
}
|
||||
}
|
||||
|
||||
private float _floatLength = 0.3f;
|
||||
private float _floatLength = 0.7f;
|
||||
|
||||
/// <summary>
|
||||
/// 浮漂线长度
|
||||
|
||||
@@ -95,6 +95,9 @@ public class BobberPresentationController : MonoBehaviour
|
||||
|
||||
[Tooltip("触底后减少的下沉量(例如铅坠到底,漂会回升一点)")] public float bottomTouchLift = 0.01f;
|
||||
|
||||
[Header("Debug Input")] [Tooltip("调试:按 R 恢复默认")]
|
||||
|
||||
public bool debugResetKey = true;
|
||||
[Header("Debug Input")] [Tooltip("调试:按 T 触发轻点")]
|
||||
public bool debugTapKey = true;
|
||||
|
||||
@@ -529,6 +532,11 @@ public class BobberPresentationController : MonoBehaviour
|
||||
if (!Application.isPlaying)
|
||||
return;
|
||||
|
||||
if (debugResetKey && Input.GetKeyDown(KeyCode.R))
|
||||
{
|
||||
StopBite();
|
||||
}
|
||||
|
||||
if (debugTapKey && Input.GetKeyDown(KeyCode.T))
|
||||
PlayTap();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user