// Update is called once per frame void FixedUpdate() { float horizontalSpeed; float verticalSpeed; if (!isDeath) { if (!immovable) { horizontalSpeed = inputHorizontal(); verticalSpeed = inputVertical(); //if (ropeScript.isClimbRope ()) { //ropeScript.MovementOnRope (horizontalSpeed, verticalSpeed); /*} else*/ if (pushPullScript.isPullingObject()) { pushPullScript.MoveHorizontal(horizontalSpeed); } else { groundScript.MoveHorizontal(horizontalSpeed); } } } }