コード例 #1
0
        private void setButtonsState()
        {
            giveControlToPlayer.interactable = selectedCountry.isAI();
            giveControlToAi.interactable     = !selectedCountry.isAI();

            declareWar.interactable = !Diplomacy.IsInWar(Game.Player, this.selectedCountry);
        }
コード例 #2
0
 public void OnDeclareWar()
 {
     if (Game.Player != this.selectedCountry && !Diplomacy.IsInWar(Game.Player, this.selectedCountry))
     {
         Diplomacy.DeclareWar(Game.Player, this.selectedCountry);
         Refresh();
     }
 }