private void StartNavigation() { if (NavTargets.Count == 0) { navTargetManager = NavTargetManager.Instance; NavTargets = navTargetManager.GetAllNavTargets(); } isNavigating = true; }
private void StartNavigation() { if (NavTargets.Count == 0) { navTargetManager = NavTargetManager.Instance; NavTargets = navTargetManager.GetAllNavTargets(); } isNavigating = true; StartCoroutine(GoToNextPoint()); }