Beispiel #1
0
 private void StartNavigation()
 {
     if (NavTargets.Count == 0)
     {
         navTargetManager = NavTargetManager.Instance;
         NavTargets       = navTargetManager.GetAllNavTargets();
     }
     isNavigating = true;
 }
Beispiel #2
0
 private void StartNavigation()
 {
     if (NavTargets.Count == 0)
     {
         navTargetManager = NavTargetManager.Instance;
         NavTargets       = navTargetManager.GetAllNavTargets();
     }
     isNavigating = true;
     StartCoroutine(GoToNextPoint());
 }
Beispiel #3
0
    private void Awake()
    {
        if (Instance != null && Instance != this)
        {
            Destroy(this.gameObject);
        }
        else
        {
            Instance = this;
        }

        // GatherAllNavTargets();
    }
Beispiel #4
0
 private void OnDestroy()
 {
     Instance = null;
 }