예제 #1
0
 public void SetNavMesh(NavMesh mesh)
 {
     _mesh = mesh;
 }
예제 #2
0
        static void OnNavMeshGenerated(long navMeshId, int w, int h, float[] origin, float tileW, float tileH, int maxTiles)
        {
            var mesh = new NavMesh(navMeshId, w, h, new Vector3(origin[0], origin[1], origin[2]), tileW, tileH, maxTiles);

            UnfinishedNavMeshes.Add(navMeshId, mesh);
        }
예제 #3
0
 static void OnNavMeshGenerated(long navMeshId, int w, int h, float[] origin, float tileW, float tileH, int maxTiles)
 {
     var mesh = new NavMesh(navMeshId, w, h, new Vector3(origin[0], origin[1], origin[2]), tileW, tileH, maxTiles);
     UnfinishedNavMeshes.Add(navMeshId, mesh);
 }
예제 #4
0
 private void OnNewNavMesh(NavMesh mesh)
 {
     // toy around with mesh
     _manager.MeshManager.SetNavMesh(mesh);
 }