private void setButtonsState() { giveControlToPlayer.interactable = selectedCountry.isAI(); giveControlToAi.interactable = !selectedCountry.isAI(); declareWar.interactable = !Diplomacy.IsInWar(Game.Player, this.selectedCountry); }
public void OnDeclareWar() { if (Game.Player != this.selectedCountry && !Diplomacy.IsInWar(Game.Player, this.selectedCountry)) { Diplomacy.DeclareWar(Game.Player, this.selectedCountry); Refresh(); } }