public virtual void Update() { RunLoop(); if (_purpose == null) { return; } //判断到达目标点的距离 var dis = Util.Distance2_5D(transform.position, _purpose.targetPos); if (dis < _purpose.stopDistance) { OnArrived(); return; } //驱动目标 _purpose.Loop(); }
public virtual void Update() { RunLoop(); if (_purpose == null) { return; } //判断到达目标点的距离 var dis = Util.Distance2_5D(transform.position, _purpose.targetPos); if (dis < _purpose.stopDistance) { OnArrived(); return; } //驱动目标 _purpose.Loop(); }