From 9ace0e409866e6909da0df17a8e27f914589b1e6 Mon Sep 17 00:00:00 2001 From: Chloe Date: Wed, 23 Oct 2024 17:02:58 -0400 Subject: [PATCH] Fixed formatting --- .obsidian/workspace.json | 6 +++--- Tutorials/Enemy AI - Unity NavMesh (tutorial).md | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.obsidian/workspace.json b/.obsidian/workspace.json index 7453962..32df698 100644 --- a/.obsidian/workspace.json +++ b/.obsidian/workspace.json @@ -27,12 +27,12 @@ "state": { "type": "markdown", "state": { - "file": "Scripting/UnityEngine.AI/Classes/NavMesh.md", + "file": "Tutorials/Enemy AI - Unity NavMesh (tutorial).md", "mode": "source", "source": false }, "icon": "lucide-file", - "title": "NavMesh" + "title": "Enemy AI - Unity NavMesh (tutorial)" } } ], @@ -190,8 +190,8 @@ }, "active": "be6bc070960af330", "lastOpenFiles": [ - "Scripting/Classes/Physics/Raycast.md", "Scripting/UnityEngine.AI/Classes/NavMesh.md", + "Scripting/Classes/Physics/Raycast.md", "Scripting/Classes/Physics", "Scripting/Classes", "copilot-conversations/Robot_can_you_search_the_web@20241023_164312.md", diff --git a/Tutorials/Enemy AI - Unity NavMesh (tutorial).md b/Tutorials/Enemy AI - Unity NavMesh (tutorial).md index 5514352..d8d8db1 100644 --- a/Tutorials/Enemy AI - Unity NavMesh (tutorial).md +++ b/Tutorials/Enemy AI - Unity NavMesh (tutorial).md @@ -13,7 +13,8 @@ Make sure to have the gizmos turned on, as without them, you can't see the navig - Add a **Private NavMesh** to your script, call it ``agent'` - In your **start** method, set your ``agent`` to ``GetComponent();`` - And finally, in your **update** run the function ``destination = target.position`` to your ``agent``. -```C# + +```csharp // You should now have something like this: