Posts
Q&A
์์ผ๊ฐ ๊ตฌํ์ด ์ ๋๋ก ์๋๋๋ฐ ์ด๋ป๊ฒ ํด๊ฒฐํด์ผํ๋์.
์์ ์ ๋ผ์ง๋ค๊ณผ ๋๊ฐ์ด ๊ตฌํํ๊ธธ ์ํ์๋ฉด transform.position + transform.up + transform.forward ๋ฅผ transform.position + transform.up ๋ก ๋ฐ๊ฟ๋ณด์ธ์
- Likes
- 0
- Comments
- 1
- Viewcount
- 611
Q&A
๋์์ฃผ์ธ์
Action Controller์ Layer Mask์ ๋ผ์ง๊ฐ ํฌํจ๋์ด ์์ง ์์์ if๋ฌธ์ ๊ฑธ๋ฆฌ์ง ์์ ์๊ธฐ๋ ์ค๋ฅ ๊ฐ์ต๋๋ค. ๋ผ์ง์ Layer๋ฅผ item์ผ๋ก ํ๊ฑฐ๋ Animal Layer๋ฅผ ์ถ๊ฐํด์ Layer๋ฅผ Animal๋ก ์ค์ ํ๊ฒ๋๋ฉด if๋ฌธ์ ๊ฑธ๋ ค์ ์์ ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ ์ ์์ต๋๋ค. ๊ทธ๋ฌ๋ Weapon์์๋ ์ถฉ๋๊ฐ์ง๊ฐ layer๊ฐ ๋ณํจ์ ๋ฐ๋ผ ์ ์ฉ๋์ง ์์ผ๋ฏ๋ก CloseWeapon layer(ex axe, pickaxe ๋ฑ์ ํ์์ Layer mask)์๋ animal์ ์ถ๊ฐํด์ฃผ๋ฉด ์์ ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ ์ ์์ ๊ฒ ๊ฐ์ต๋๋ค.
- Likes
- 1
- Comments
- 2
- Viewcount
- 356
Q&A
๊ณต๊ฒฉ์ฑ์ ๋๊ณ ์๋ ๋๋ฌผ์ด ์ฃฝ์ด๋ ๊ณ์ ์ซ์์ต๋๋ค.
Animal.cs์ Dead ์กฐ๊ฑด๋ฌธ์ด ์ ๋๋ก ๋ค ์ ํ์ง ์์ ๊ฒ ๊ฐ์์ nav.ResetPath(), StopAllCoroutines()์ ์ ์ด์ค์ผ ๋๋งํ AI๋ ๋ถ๋ค๋์ง ์๊ณ ๊ณต๊ฒฉํ AI๋ ๋ฐ๋ผ์ค์ง ์์ต๋๋ค. ๋ชจ๋ ์กฐ๊ฑด ์ด๊ธฐํ ์ํค๋ ๊ฒ์ด ๊น๋ํ ๊ฒ ๊ฐ์์. ํ์ง๋ง ๋ง์ฝ coroutine์ ๋ชจ๋ ์ด๊ธฐํ ์ํค๋๊ฒ ์ฐ์ฐํ๋ค๋ฉด ์์ํด๋์ค์์ chasing๋ง ์ทจ์ํด์ค๋ ๊ด์ฐฎ์ ๊ฒ ๊ฐ์์.
- Likes
- 0
- Comments
- 1
- Viewcount
- 330
Q&A
serializefield๊ฐ ์ด๋ก์์ผ๋ก ๋์ค์ง ์์์
ํธ์ง> preference>External Tools> External Script Editor๊ฐ Visual Studio๋ก ์ค์ ๋์ด์๋์ง ํ์ธํด๋ณด์ธ์
- Likes
- 1
- Comments
- 4
- Viewcount
- 1.4K
Q&A
ํต์ฌ๋กฏ์ ์์ดํ ์๋๋ฉด ์๊พธ ๋ฒ๋ฆฌ๋ผ๋์ฐฝ์ด๋์ค๋ค์ ๊ฐ์๋๊น์ง๋ค๋ดค๋๋ฐ
DropSlot์ด parent์ธ Inventory base์ ์ข ์์ ์ด๋ผ์ ์๊ธฐ๋ ์ค๋ฅ ๊ฐ์์. dropslot์ด inventory base์ ๋ก์ปฌ ํฌ์ง์ ์ ์์ ์ผ๋ก ์ก์์ ์ ์ ๊ฒฝ์ฐ ๊ฐ์๋๋ก ํ๋ฉด ์ขํ๊ฐ ์๋ง๋๋ผ๊ตฌ์. Rect baseRect๋ฅผ RectTransform์ผ๋ก ๋ฐ๊พธ์ ๋ค์ quickSlotBaseRect.transform.localPosition.y - quickSlotBaseRect.rect.yMax ์ฌ๊ธฐ์ baseRect.localPosition.y๋ฅผ ๊ฐ๊ฐ ๋นผ์ฃผ์๋ฉด ๋ ๊ฒ ๊ฐ์ต๋๋ค. ํน์ ๋ค๋ฅด๊ฒ ํด๊ฒฐํ์ จ๋ค๋ฉด ๊ณต์ ๋ถํ๋๋ ค์
- Likes
- 3
- Comments
- 2
- Viewcount
- 473




