提交脚本
This commit is contained in:
@@ -55,7 +55,7 @@ namespace NBF
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private float _floatLength = 0.3f;
|
private float _floatLength = 0.7f;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 浮漂线长度
|
/// 浮漂线长度
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user