// Start is called before the first frame update private void Start() { gravidy = -(2 * maxJumpHight) / Mathf.Pow(timeToJumpApex, 2); MaxJumpVelocity = Mathf.Abs(gravidy) * timeToJumpApex; minJumpHeight = Mathf.Sqrt(2 * Mathf.Abs(gravidy) * minJumpHeight); controler = gameObject.GetComponent <CharicterControlerBace>(); }
// Start is called before the first frame update void Start() { controler = gameObject.GetComponent <CharicterControlerBace>(); p = gameObject.GetComponent <Player>(); rb = gameObject.GetComponent <Rigidbody2D>(); }