示例#1
0
    void FixedUpdate()
    {
        EggController.Move(movement * Time.fixedDeltaTime, false, false);

        //if (_MyRB.velocity.x > 0.1f || _MyRB.velocity.x < -0.1f)
        //{
        //	Debug.Log(_MyRB.velocity.x);
        //	_MyRB.AddTorque(-_MyRB.velocity.x);
        //}
    }
示例#2
0
 void FixedUpdate()
 {
     controller.Move(horizontalMove * Time.fixedDeltaTime, false, jump);
     jump = false;
 }