Example #1
0
        void UpdateTaxation()
        {
            var currentTax = showingTile.demographics.taxation + TaxOrder.TaxChangeOrdered(showingTile);

            taxation.text = currentTax.ToString();
            taxationDecrease.interactable   = currentTax > 0;
            taxationOrderReset.interactable = TaxOrder.HasTaxChangeOrder(showingTile);
        }
Example #2
0
        void UpdateUIData()
        {
            if (showingTile == null)
            {
                return;
            }

            regionTitle.text = showingTile.name;
            population.text  = showingTile.demographics.population.ToString();
            UpdateTaxation();

            nativity.text  = showingTile.demographics.nativity.ToString();
            deathToll.text = showingTile.demographics.deathToll.ToString();

            taxationDecrease.interactable   = Game.IsCurrentUserID(showingTile.demographics.rulerID) && showingTile.demographics.taxation > 0;
            taxationIncrease.interactable   = Game.IsCurrentUserID(showingTile.demographics.rulerID);
            taxationOrderReset.interactable = TaxOrder.HasTaxChangeOrder(showingTile);
        }