Versions with this page:
Versions without this page:
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); } }