コード例 #1
0
 //MouseDown function first checks the Current State and if it is on move it gets the first touch position
 //and calls ClosestTiles function from TileBehavior Class.
 public void MouseDown(TileBehavior tile)
 {
     if (board.currentState == GameState.move)
     {
         firstTouchPosition = Camera.main.ScreenToWorldPoint(Input.mousePosition);
         tile.ClosestTiles();
     }
 }