void Update() { if (BoardManager == null) { return; } if (LocomotionController.MoveNeed) { LocomotionController.SetNewDirection(PathController.GetNextMove(BoardManager.boardInfo, LocomotionController.CurrentEndPosition(), null)); } }