Version: 2017.3
public characterController controller ;

描述

撞击该碰撞体的控制器。

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void OnControllerColliderHit(ControllerColliderHit hit) { hit.controller.detectCollisions = false; } }