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()); }
private void Awake() { if (Instance != null && Instance != this) { Destroy(this.gameObject); } else { Instance = this; } // GatherAllNavTargets(); }
private void OnDestroy() { Instance = null; }