강의

멘토링

커뮤니티

Inflearn Community Q&A

hbtrain77244's profile image
hbtrain77244

asked

Game Development with Unity: Part 3. Shooting Game Development

Destroy

Collider인 other.gameObject;

Written on

·

417

0

Destroy 파트 강좌에서
OnTriggerEnter(Collider other)
{
Destroy(other.gameObject);
}
 
이해가 잘 되긴 하지만
other.gameObject를 other가 가진 gameObject라고 해석해야 할 듯 한데 gameObject가 Collider를 가지고 있는 것이지 않나요?
gameObject.other는 자연스러운것 같은데,
other.gameObject라면~ 이것도 참조와 역참조의 관계인건가요?
unityC#

Answer

This question is waiting for answers
Be the first to answer!
hbtrain77244's profile image
hbtrain77244

asked

Ask a question