示例#1
0
 public void MoveTo(int boardPosition)
 {
     //if (this.boardPosition != boardPosition)
     {
         this.boardPosition = boardPosition;
         gridPosition       = game.BoardToGridPosition(boardPosition);
         Vector2 position = game.GridToLocalPosition(gridPosition);
         position += localPositionOffset;
         transform.localPosition = position;
     }
 }