ButtonSnipe.gameObject.SetActive(playerAttackType == PlayerAttackType.Sniping);
if(playerAttackType == PlayerAttackType.Sniping)
{
ButtonSnipe.gameObject.SetActive(true);
}
else
{
ButtonSnipe.gameObject.SetActive(false);
}
์์ ์ ๋ฌด์ ๊ถ ์ ์๋ก ํ๋๋ฐ
์์ฆ์ ํ์๊ฐ ๋ ํธํ๊ฒ ๋๊ปด์ง๋ค
์ธ๋ถ์ด๋ค ์ ํ์?
๋ ํ์๋ก ํ๋ค๊ฐ ์ ์ด๋ป์ ์ ์๋ก ํจ
๊ฐ๋ ์ฑ ์ข์๊ฒ ์ต๊ณ ์, ์ ์๊ฐ ๋ ๋น ๋ฅด๊ณ ์ฝ์ ์ ์๊ณ , ์ดํด๋ ๊ฐ๋จ
ํ์ด๋ผ ๊ทธ๋ฐ๊ฐ ํ์๊ฐ ๋ ๋นจ๋ฆฌ์ฝํ๋ค
ํ์
๊ฐ์ธ์ ์ผ๋ก ๋ ์์ฝํ๋๊ฑด ํ์์
bool isSnipe = playerAtrackType == PlayerAttackType.Sniping; ButtonSnipe.gameObject.SetActive(isSnipe);
ใ ใ ๊ฐ์ ์ด๋ฆ์ ๋ถ์ธ๋ค๋๊ฒ ์๊ฐ๋ณด๋ค ์์ฒญ ์ค์ํ ์ผ์ด์ผ
์ ์
๋ ํ์
์ ์ฝ๋๋ง ์์๋ ๋ชจ๋ฅด๊ฒ ๋๋ฐ ์ฝ๋๋์ด ๋ฐฉ๋ํด์ง๋ฉด ์ ์๋ ์ฌ์ด ์์ฝํ๋ฏ...
๋ฅํ