Esempio n. 1
0
    void FixedUpdate()
    {
        if (gravity == null)
        {
            return;
        }

        gravity.ApplyGravity(transform);
    }
 // Update is called once per frame
 void Update()
 {
     gravity.ApplyGravity(transform);
 }
Esempio n. 3
0
 //FixedUpdate is called every fixed framerate frame.
 private void FixedUpdate()
 {
     gravity.ApplyGravity(rigidbody, onGround);
 }