커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
scene창에는 이벤트가 보이는데, 실제 game창에는 보이지 않습니다.
게임개발 종합반 v7
기타
북마크
송*철
댓글
11
추천
0
조회수
25
조회수
25
답변 완료


게임 진행 시 특정 점수 이상에 도달하면 이벤트가 발생하는데, Scene창에는 이벤트가 보이지만, game창에는 보이지 않습니다.



스파르타 즉문즉답




작성한 코드 및 에러 메세지

  1. MissingComponentException: There is no 'Light' attached to the "Crown" game object, but a script is trying to access it.

You probably need to add a Light to the game object "Crown". Or your script needs to check if the component is attached before using it.

LightController+<Flicker>d__8.MoveNext () (at Assets/Scripts/LightController.cs:31)

UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at <e8a406da998549af9a2680936c7da25a>:0)

UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)

LightController:Start() (at Assets/Scripts/LightController.cs:22)


2.NotImplementedException: The method or operation is not implemented.

Crown.OnCollisionEnter2D (UnityEngine.Collision2D collision) (at Assets/Scripts/Crown.cs:32)


3.MissingReferenceException: The object of type 'GameObject' has been destroyed but you are still trying to access it.

Your script should either check if it is null or you should not destroy the object.

UnityEngine.Object.Internal_InstantiateSingle (UnityEngine.Object data, UnityEngine.Vector3 pos, UnityEngine.Quaternion rot) (at <e8a406da998549af9a2680936c7da25a>:0)

UnityEngine.Object.Instantiate (UnityEngine.Object original, UnityEngine.Vector3 position, UnityEngine.Quaternion rotation) (at <e8a406da998549af9a2680936c7da25a>:0)

UnityEngine.Object.Instantiate[T] (T original, UnityEngine.Vector3 position, UnityEngine.Quaternion rotation) (at <e8a406da998549af9a2680936c7da25a>:0)

gameManager.Update () (at Assets/Scripts/gameManager.cs:76)





취소
 공유
취소
댓글 0
댓글 알림
나의얼굴