提交修改
This commit is contained in:
@@ -37,7 +37,7 @@ public class Rope : MonoBehaviour
|
||||
|
||||
public void LineLength_OnValueChanged(float length)
|
||||
{
|
||||
cursor = ((cursor == null) ? GetComponent<ObiRopeCursor>() : cursor);
|
||||
cursor = cursor == null ? GetComponent<ObiRopeCursor>() : cursor;
|
||||
stretchScale = Mathf.Clamp(length - percentageElasticity, 0f, float.PositiveInfinity);
|
||||
}
|
||||
|
||||
|
||||
@@ -57,8 +57,16 @@ namespace NBF
|
||||
});
|
||||
|
||||
StartCoroutine(test());
|
||||
fishingRope.Init(Rod);
|
||||
bobberRope.Init(Rod);
|
||||
if (isLureConnect)
|
||||
{
|
||||
fishingRope.Init(Rod);
|
||||
}
|
||||
else
|
||||
{
|
||||
fishingRope.Init(Rod);
|
||||
bobberRope.Init(Rod);
|
||||
}
|
||||
|
||||
// rodLine.GenerateLineRendererRope(guides.ToArray(), _LineThickness);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user