void Start() { controller = GetComponent<Controller2D>(); jumped = false; isCooldown = false; canPull = false; gravity = -(2 * jumpHeight) / Mathf.Pow(timeToJumpApex, 2); jumpVelocity = Mathf.Abs(gravity) * timeToJumpApex; }