}//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
public void Start() { if (Instance == null) { Instance = this; } else { return; } _pathFinder = GetComponent <Pathfinder>(); }//Start
}//Start public void Update() { if (!bHasInit) { _pathDebugger = PathDebugger.Instance; if (_pathDebugger == null) { return; } _pathDebugger.EOnPointSelected += OnNavigationSelected; bHasInit = true; } }//Update