📅  最后修改于: 2022-03-11 14:48:46.656000             🧑  作者: Mango
public float gravity;
Vector3 velocity;
public CharacterController controller;
void Update()
{
velocity.y += gravity * Time.deltaTime;
controller.Move(velocity * Time.deltaTime);
}