Beispiel #1
0
    public static void UpdateProgression()
    {
        SaveData saveData = SaveData.Get();

        if (!saveData.hasDebtTutorialEmail)
        {
            saveData.AddEmail(DebtTutorialEmail());
            saveData.hasDebtTutorialEmail = true;
        }

        if (GameLoopController.IsComputerScene())
        {
            if (!saveData.madePaymentToday)
            {
                saveData.missedDebtPayments += 1;
                if (saveData.missedDebtPayments == 1)
                {
                    saveData.AddEmail(DebtWarningEmail());
                }
                else
                {
                    GameLoopController.GameOver();
                }
            }
        }
    }
Beispiel #2
0
    public static void UpdateProgression()
    {
        SaveData saveData = SaveData.Get();

        if (!saveData.hasMiningTutorialEmail)
        {
            saveData.AddEmail(MiningTutorialEmail());
            saveData.hasMiningTutorialEmail = true;
        }
    }
Beispiel #3
0
    public static void CheckEmails()
    {
        SaveData saveData = SaveData.Get();

        if (saveData.activeShopItem > saveData.lastAdvertisementEmail)
        {
            Email adEmail = GenerateAdEmail(saveData.activeShopItem + 1);
            saveData.AddEmail(adEmail);
            saveData.lastAdvertisementEmail = saveData.activeShopItem;
        }
    }