Esempio n. 1
0
 public void SetNavMesh(NavMesh mesh)
 {
     _mesh = mesh;
 }
Esempio n. 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);
        }
Esempio n. 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);
 }
Esempio n. 4
0
 private void OnNewNavMesh(NavMesh mesh)
 {
     // toy around with mesh
     _manager.MeshManager.SetNavMesh(mesh);
 }