private void Cleanup() { UpdateScene(null); CurrentNavigationMesh = null; NavigationMeshUpdated?.Invoke(this, null); }
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); } }