Example #1
0
    private void TickDay()
    {
        bool isEndOfWeek = false;

        gameDataManager.AddDayOfWeek();
        if (gameDataManager.DayOfWeekIndex == 0)
        {
            TickWeek();
            isEndOfWeek = true;
        }
        int deltaMoney = GetModifiersCalculation(incomeModifiers.ConvertAll(x => (Modifier)x), true, isEndOfWeek);
        int deltaMood  = GetModifiersCalculation(moodModifiers.ConvertAll(x => (Modifier)x), true, isEndOfWeek);

        gameManager.AddDayToWeekProgressIndicator();
        AddMoney(deltaMoney);
        AddMood(deltaMood);
        gameDataManager.DailyIncome     = deltaMoney;
        gameDataManager.DailyMoodChange = deltaMood;
        gameDataManager.AddToDayCounter();
    }