Beispiel #1
0
    /// <summary>
    /// Calculates and adds the income of all resources to the amount available
    /// </summary>
    private void processIncome()
    {
        resourceAmount[0] += resourceBaseIncome[0] - resourceUpkeep[0]; //FOOD income
        resourceAmount[1] += resourceBaseIncome[1] - resourceUpkeep[1]; //WOOD income
        resourceAmount[2] += resourceBaseIncome[2] - resourceUpkeep[2]; //GOLD income

        //Update the UI
        resourceUI.updateText(resourceAmount, resourceBaseIncome, resourceUpkeep);
    }