Fixed indoor scene
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user