Esempio n. 1
0
 public override void Click(int button, Coords hoverTile)
 {
     if (button == 0)
     {
         if (hoverTile != null)
         {
             TileData tile = ClientController.gameState.GetTile(hoverTile);
             if (tile.unit != -1 && tile.unit != ClientController.ActiveUnit.ID)
             {
                 CommunicationController.SetActiveUnit(ClientController.activePlayer, tile.unit);
             }
             else
             {
                 TileInfoUI.Show(tile);
             }
         }
     }
 }
Esempio n. 2
0
 private void Awake()
 {
     instance = this;
 }