public void MoveTo(Vector3 targetPosition, Action onReachedPosition)
 {
     state = State.Moving;
     movePosition.SetMovePosition(targetPosition + new Vector3(1, 1), () => {
         state = State.Normal;
         onReachedPosition();
     });
 }
 public void MoveTo(Vector3 targetPosition, Action onReachedPosition)
 {
     _state = State.Moving;
     // PATHFINDING
     _movePositionPathfinding.SetMovePosition(targetPosition + new Vector3(1, 1), () => {
         _state = State.Normal;
         onReachedPosition();
     });
 }
Beispiel #3
0
 public void MoveTo(Vector3 targetPosition, Action onReachedPosition)
 {
     selectedBox.SetActive(false);
     movePosition.SetMovePosition(targetPosition + new Vector3(1, 1), () => {
         SetCorrectPosition();
         selectedBox.SetActive(true);
         onReachedPosition();
     });
     SoundManager.PlaySound("WalkingBattle");
 }