유니티 2d2 유니티 - [2D 오브젝트 따라다니는 AI] ▣ 2D 스프라이트를 생성해 주세요. Square로 Player이름으로 , Circle를 Zombie로 생성합니다. ▣ Zombie 오브젝트에 ZombieManager라는 스크립트를 생성하고 코드처럼 작성합니다. ▣ Vector2.MoveTowards(자신에 위치, 타깃위치, 이동스피드 * 경과시간); ▣ 저장하고 시작버튼을 클릭하면 Zombie 오브젝트가 Player오브젝트 방향으로 이동합니다. https://assetstore.unity.com/top-assets/top-new?aid=1101lvILc 2023. 5. 9. 유니티 - [2D 캐릭터 움직이기] https://assetstore.unity.com/packages/2d/characters/bolt-2d-dinorun-assets-pack-188721 Bolt 2D DinoRun Assets Pack | 2D 캐릭터 | Unity Asset Store Elevate your workflow with the Bolt 2D DinoRun Assets Pack asset from Goldmetal. Find this & more 캐릭터 on the Unity Asset Store. assetstore.unity.com ▣ 여기서 에셋을 받으세요. ▣ 기본적으로 원하시는 2D 캐릭터와 바닥을 넣어주세요. Player오브젝트에 Rigidbody 2D와 Box Collider2 D 영역을 넣어주세요. Rigi.. 2021. 5. 12. 이전 1 다음