예제 #1
0
 public void TileSelected(Tile tile, Character content)
 {
     if (content != null)
     {
         if (content.CharacterType == CharacterEnum.Player)
         {
             if (currentState == States.destinationSelect || currentState == States.characterSelect)
             {
                 CharacterSelect.PlayerSelected(tile, content);
             }
         }
         else
         {
             if (currentState == States.destinationSelect || currentState == States.characterSelect)
             {
                 //TODO enemy info action
             }
         }
     }
     else if (currentState == States.destinationSelect)
     {
         if (tile.selectableForWalkableTilesSearch)
         {
             DestinationSelect.WalkToDestination(CharacterSelect.selectedPlayer, tile);
         }
     }
 }