박유민_10.3_DevQuest (재업로드) #48
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
*기존의 10.03 DevQuest의 브랜치를 잘못 설정해 다시 올립니다
우선 저번에 만든 스크립트를 기반으로 몇 가지를 수정했습니다.
일단 기본 작동법은
마우스 오른쪽 클릭 후 마우스 포지션으로 방향 전환
AWSD로 플레이어 이동
마우스를 몬스터 위에 두고 마우스 왼쪽 버튼 클릭 시 총격, F버튼 누르면 연속 총격
입니다
Assets/Scripts/EnemyAI 48~50번쨰 줄 각주에서 Enemy가 Idle인 상태에서도 움직이는 것을 멈추는 코드를 구현하고자 했으나 못했습니다. 참고로 이걸 Invoke("StartCorutine(UpdatePath())",1.5f)를 Start(),Awake()에 해봤더니 몬스터가 움직이지도 않았습니다. 이걸 해결할 수 있는 방법이 궁금합니다.
또 Assets/Scripts/EnemyAI에서 NavMeshAgent로 몬스터가 움직이고 플레이어를 추격하는 기능을 구현했는데 몬스터가 일정 수준이상 가까이 다가오지 못하고 심지어 어떤 것들은 다가가면 멀어지기까지 합니다. 이를 어떻게 해결하면 좋을까요?