增加表格

This commit is contained in:
Bob.Song
2026-03-06 17:48:22 +08:00
parent 5012097465
commit 68beeb3417
32 changed files with 1258 additions and 22939 deletions

View File

@@ -19,7 +19,7 @@ namespace Test
//有浮漂
line.Lure.SetJointDistance(floatLength);
line.Bobber.SetJointDistance(lineLength - floatLength);
line.SetObiRopeStretch(lineLength - floatLength);
line.SetTargetLength(lineLength - floatLength);
}
private void Update()
@@ -44,13 +44,13 @@ namespace Test
{
Debug.Log($"lineLength={lineLength}");
if (!line) return;
if (line.IsLure)
if (line.LineType == LineType.Spinning)
{
//没有浮漂类型
line.Lure.SetJointDistance(lineLength);
if (stretchRope)
{
line.SetObiRopeStretch(Tension > 0f ? 0f : lineLength);
line.SetTargetLength(Tension > 0f ? 0f : lineLength);
}
}
else
@@ -60,7 +60,7 @@ namespace Test
line.Bobber.SetJointDistance(lineLength - floatLength);
if (stretchRope)
{
line.SetObiRopeStretch(Tension > 0f ? 0f : lineLength - floatLength);
line.SetTargetLength(Tension > 0f ? 0f : lineLength - floatLength);
}
}
}