public void GoesFromHereToLast() { WalkPath wp = GameManager.Instance.scenario.currentRoom.walkPath; WalkPath.closestPointResult first = wp.ClosestDot(this.transform.position); WalkPath_Dot last = wp.wholePath_Dots[wp.wholePath_Dots.Count - 1]; GoesFromThisPointToThatPoint(first.firstPoint, last);///TOD OOOOO }
public void GoesToClosestDot(Vector3 positionInSpace) { if (walking) { foreach (Tween tw in currentTween) { tw.Kill(); } currentTween.Clear(); /////If : already seeking this point or a close point AND path is like more than 3 long, then : runSpeedMove and not speedMove } WalkPath wp = GameManager.Instance.scenario.currentRoom.walkPath; //probably will need to watch distance of seeking WalkPath.closestPointResult first = wp.ClosestDot(this.transform.position); WalkPath.closestPointResult last = wp.ClosestDot(positionInSpace); GoesFromThisPointToThatPoint(first.firstPoint, last.firstPoint); }