Version: 5.3
public Collider collider ;

설명

The collider that was hit by the controller.

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void OnControllerColliderHit(ControllerColliderHit hit) { hit.gameObject.SendMessage("ApplyDamage", 5); } }