增加表格
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user