GameObject.FindGameObjectWithTag("Tag").gameObject.SetActive(false);
๋ถ๋ถ
NullReferenceException: Object reference not set to an instance of an object๋ผ๊ณ ์ค๋ฅ๋ธ;;
GameObject.FindGameObjectWithTag("Tag").gameObject.SetActive(false);
๋ถ๋ถ
NullReferenceException: Object reference not set to an instance of an object๋ผ๊ณ ์ค๋ฅ๋ธ;;
.FindGameObjectWithTag๋์ .FindWithTag์ฐ๋๊น ๋๋๋ฐ ์ ๋๋์ง ์ดํด๊ฐ ์๊ฐ๋ค
G -> g๋ก ๋ฐ๊ฟ์ ํด๋ณด๋๊ฐ ์๋๋ฉด ํด๋น object๊ฐ ํ์ฑํ๊ฐ ์๋์ด์๋ค๊ณ ํ์์