Version: 2020.1
언어: 한국어
public GameObject gameObject ;

설명

The game object that was hit by the controller.

using UnityEngine;

public class Example : MonoBehaviour { void OnControllerColliderHit(ControllerColliderHit hit) { // Objects we touch, move them to position (0, 0, 0) hit.gameObject.transform.position = Vector3.zero; } }