Replies: 2 comments 5 replies
-
안녕하세요, 런타임에 추가된 커스텀 클래스 컴포넌트일 경우 모바일 테스트시에 |
Beta Was this translation helpful? Give feedback.
5 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
=====
// :: NPC Data 획득
const npcData = hitInfo.collider.gameObject.GetComponent();
=====
PC에서는 해당 스크립트를 잘 가져오는데,
모바일에서는 해당 스크립트를 제대로 가져오지 못하는 현상이 있습니다.
NPC가 움직이는 것을 보면 NPC에게 일단 해당 스크립트가 부착되어 있는 것 같습니다.
===== 전체 코드 =====
private * ShootRay() {
while (true) {
// :: 스타팅 포지션
const startingPosition = new UnityEngine.Vector3(
this.gameObject.transform.position.x,
this.gameObject.transform.position.y + 0.5,
this.gameObject.transform.position.z
);
==========
Beta Was this translation helpful? Give feedback.
All reactions