강의

멘토링

커뮤니티

Inflearn Community Q&A

blackholebird40526's profile image
blackholebird40526

asked

Unity Game Development (Unity 2D) - From Start to Deployment

Running Game Production Practice 3

충돌이 안됩니다

Written on

·

215

0

ontriggerendter2d 함수로 log띄우는게 안됩니다.

그냥 debug.log하면 되는데

  if (col.transform.name == "WinCollder")

        {

            Debug.Log("Win");

            GameManger.GetComponent<gamemanger>().Win();

        }

        else if (col.transform.name == "LoseCollder")

        {

            Debug.Log("lsoe");

            GameManger.GetComponent<gamemanger>().Lose();

        }

 

이걸 붙이면 콜라이더랑 부딪혀도 로그가 안떠요 뭐가 문제인지 

unity

Answer

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

asked

Ask a question