Пример #1
0
    public void PayDailyCosts()
    {
        int todaysCost = 0;

        foreach (Character f in Fighters)
        {
            todaysCost = todaysCost + GameObject.Find("GameController").GetComponent <GameController>().GameRandom.Next(BasicValues.basicDailyCost, BasicValues.maxDailyCost + 1);
        }
        int todaysFinalCost = 0 - todaysCost;

        TeamManager.AddFunds(todaysFinalCost);
        ThisMonthsCost = ThisMonthsCost + todaysCost;
    }