Exemple #1
0
    private void updateSelfProvinceButtons(Nation player, assemblyCsharp.Province province)
    {
        if (PlayerCalculator.checkUpgradeDevelopment(province, player))
        {
            upgradeDevelopment.interactable = true;
        }
        else
        {
            upgradeDevelopment.interactable = false;
        }
        if (PlayerCalculator.canUpgradeRailRoad(province, player))
        {
            upgradeRailway.interactable = true;
        }
        else
        {
            upgradeRailway.interactable = false;
        }

        if (PlayerCalculator.canUpgradeFort(province, player))
        {
            upgradeFort.interactable = true;
        }
        else
        {
            upgradeFort.interactable = false;
        }
    }