public static Text InformationTextComponent;
public static Text InformationTitleTextComponent;
InformationTitleTextComponent = GameObject.Find("BlackImageTitle_Text").GetComponent<Text>();
InformationTextComponent = GameObject.Find("BlackImage_Text").GetComponent<Text>();
์์ ์๋๊ฑฐ ์ณ ๋ฃ๊ณ ์๋์ ์๋๊ฑฐ ์ธ๋ผ ํ๋๋ฐ ์ ์๋จ
์ ์ด๋ฆ์ผ๋ก ๋ ์ค๋ธ์ ํธ๋ค์ ๋ค text ์ปดํฌ๋ํธ๋ ๊ฐ์ง๊ณ ์์
static์ผ๋ก ์ ์ธํด์ ๋ค๋ฅธ๋ฐ์ ์ค๋ค ํ ์คํธ ๋ฐ๊ฟ๋ผ ํ๋๋ฐ ์๊พธ ์คํจํจ
์ค๋ฅ๋ nullreferenceexception์ผ๋ก ๋์ค๊ณ ๋น์ทํ ๋ฐฉ์์ผ๋ก image๋ ์๋์
์ text๋ง ์ ๋ด๊น...
Find ๋ง๊ณ ๋ค๋ฅธํจ์ ์ฐ๋ฉด ์๋?
์๋๋ฉด ๊ทธ๋ฅ ์ธ์คํํฐ์ ํ ๋นํ๋๊ฐ
์ ๊ฑธ๋ก๋ ์๋จ?
์ค๋ธ์ ํธ ์ผ์ ธ์์?
ใ ใ