Esempio n. 1
0
        private void Cleanup()
        {
            UpdateScene(null);

            CurrentNavigationMesh = null;
            NavigationMeshUpdated?.Invoke(this, null);
        }
Esempio n. 2
0
 private void FinilizeRebuild(Task<NavigationMeshBuildResult> resultTask)
 {
     var result = resultTask.Result;
     if (result.Success)
     {
         var args = new NavigationMeshUpdatedEventArgs
         {
             OldNavigationMesh = CurrentNavigationMesh,
             BuildResult = result,
         };
         CurrentNavigationMesh = result.NavigationMesh;
         NavigationMeshUpdated?.Invoke(this, args);
     }
 }