19-11-2020, 03:38 PM
When increasing the length of my rope after 13.92 it does not continue to grow even though the limit (max) is set at 15 or more, I have 4 ropes on scene
Code:
if (Input.GetKey(KeyCode.K))
{
if (ropeExtrude.restLength < max)
{
for (int i = 0; i < cursor.Length; ++i)
{
cursor[i].ChangeLength(ropeExtrude.restLength + speed * Time.deltaTime);
}
Debug.Log(ropeExtrude.restLength);
}
}