Example #1
0
            }//Interrupt


            private Vector3 findTarget() {
                if (_pathDebugger == null)
                    _pathDebugger = PathDebugger.Instance;
                if (_pathDebugger.TargetPoints.Count == 0)
                    return Vector3.one * float.NegativeInfinity;

                return _pathDebugger.TargetPoints[0].GetPosition();
            }//findTarget
Example #2
0
 public void Start()
 {
     if (Instance == null)
     {
         Instance = this;
     }
     else
     {
         return;
     }
     _pathFinder = GetComponent <Pathfinder>();
 }//Start
Example #3
0
    }//Start

    public void Update()
    {
        if (!bHasInit)
        {
            _pathDebugger = PathDebugger.Instance;
            if (_pathDebugger == null)
            {
                return;
            }
            _pathDebugger.EOnPointSelected += OnNavigationSelected;
            bHasInit = true;
        }
    }//Update