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); } } } }
private void Awake() { instance = this; }