Version: 2022.3
언어: 한국어
public Collider collider ;

설명

The collider that was hit by the controller.

using UnityEngine;

public class Example : MonoBehaviour { void OnControllerColliderHit(ControllerColliderHit hit) { // Call a damage function on the object we hit. hit.gameObject.SendMessage("ApplyDamage", 5); } }