Exemplo n.º 1
0
 public void CoilCurrentSnakeIfAny()
 {
     if (isAppleBitten)
     {
         snakeHead = currentlyClickedLeaves.GetComponentInChildren <SnakeHead>();
         var joints = snakeHead.GetComponentsInChildren <FixedJoint>();
         joints[1].connectedBody = null;
     }
     StartCoroutine(currentlyClickedLeaves.snakeRenderer.CoilSnake(1f / 60f));
 }