20 lines
344 B
C#
20 lines
344 B
C#
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using Unity.AI.Navigation;
|
||
|
using UnityEngine;
|
||
|
|
||
|
public class NavmeshBaker : MonoBehaviour
|
||
|
{
|
||
|
public NavMeshSurface Surface;
|
||
|
|
||
|
private void Start()
|
||
|
{
|
||
|
// yield return new WaitForSeconds(1);
|
||
|
Surface.BuildNavMesh();
|
||
|
}
|
||
|
void Update()
|
||
|
{
|
||
|
|
||
|
}
|
||
|
}
|