game: setting up nav mesh in game scene
This commit is contained in:
parent
9bfafdd4ae
commit
d8328fa3c7
4 changed files with 1484 additions and 1317 deletions
File diff suppressed because it is too large
Load diff
Binary file not shown.
|
@ -23,7 +23,7 @@ public class UIFacePlayer : MonoBehaviour
|
|||
|
||||
void Update()
|
||||
{
|
||||
if (playerCam != null)
|
||||
if (playerCam != null && Vector3.Distance(transform.position, playerCam.position) < 2)
|
||||
{
|
||||
transform.LookAt(transform.position + playerCam.forward);
|
||||
}
|
||||
|
|
|
@ -11,8 +11,8 @@ NavMeshProjectSettings:
|
|||
cost: 1
|
||||
- name: Jump
|
||||
cost: 2
|
||||
- name:
|
||||
cost: 1
|
||||
- name: grass
|
||||
cost: 2
|
||||
- name:
|
||||
cost: 1
|
||||
- name:
|
||||
|
|
Loading…
Add table
Reference in a new issue