CharacterController 在上次移动过程中是否接触到地面?
using UnityEngine;
public class Example : MonoBehaviour { CharacterController controller;
void Start() { controller = GetComponent<CharacterController>(); }
void Update() { if (controller.isGrounded) { print("CharacterController is grounded"); } } }