void FixedUpdate() { if (gravity == null) { return; } gravity.ApplyGravity(transform); }
// Update is called once per frame void Update() { gravity.ApplyGravity(transform); }
//FixedUpdate is called every fixed framerate frame. private void FixedUpdate() { gravity.ApplyGravity(rigidbody, onGround); }