Fixed indoor scene

This commit is contained in:
Vova
2024-05-28 09:42:02 +03:00
parent 4e467184cd
commit a2a756e6d3
7 changed files with 36 additions and 82 deletions
@@ -11,7 +11,7 @@ public class IndoorController : MonoBehaviour
// If the NavMeshSurface is not assigned in the Inspector, try to find it
var navMeshSurface = transform.GetComponentInChildren<NavMeshSurface>();
var navMeshSurface = GetComponent<NavMeshSurface>();
// Build the NavMesh
if (navMeshSurface != null)