void Start() { controller = GetComponent <CircleMoveable2D> (); gravity = -(2 * maxJumpHeight) / Mathf.Pow(timeToJumpApex, 2); maxJumpVelocity = Mathf.Abs(gravity) * timeToJumpApex; minJumpVelocity = Mathf.Sqrt(2 * Mathf.Abs(gravity) * minJumpHeight); }
// Start is called before the first frame update void Start() { moveable = GetComponent <CircleMoveable2D>(); }