void Feet() { Vector2 leftFoot; Vector2 rightFoot; leftFoot = new Vector2(Input.GetAxis("Left X"), Input.GetAxis("Left Y")); rightFoot = new Vector2(Input.GetAxis("Right X"), Input.GetAxis("Right Y")); if (leftFoot.magnitude > 0.1f && rightFoot.magnitude > 0.1f) { character.Olie(); skateboard.Trick(Mathf.Ceil(-leftFoot.y), Mathf.Ceil(-rightFoot.y)); } if (character.Grounded) { if (skateboard.Tricking) { skateboard.Catch(); } } else { if (Input.GetButtonDown("Push")) { skateboard.Catch(); } } }