Ejemplo n.º 1
0
 // Navmeshes can be created by instatiating prefabs. Obstacles can then be added by
 // instantiating prefabs. Both can later be disposed of by destroying the created
 // gameobjects. Static obstacles however can be inserted in bulk by providing a Burst
 // compatible obstacle adder as seen below.
 void Load()
 {
     _plane = Instantiate(PlanePrefab);
     _plane.GetComponent <DotsNavPlane>().Size = Size;
     _navmesh          = _plane.GetComponent <DotsNavNavmesh>();
     _navmesh.DrawMode = _drawMode;
     _shouldInsert     = true;
 }