Пример #1
0
    public static void StopDigging()
    {
        MusicPlayer.FadeOut();

        // check for any emails to send
        DebtProgression.UpdateProgression();
        StoryProgression.UpdateProgression();
        AdvertisementProgression.CheckEmails();
        NewsProgression.UpdateNews();

        SaveData.Get().madePaymentToday = false; // set this AFTER email checks... just in case we send an email based on missing payments

        // Load the Computer scene
        singleton.isComputerScene = true;
        singleton.computerView.gameObject.SetActive(true);
        // Go to the "gem sale" tab
        if (isFirstTimeComputing)
        {
            // email
            singleton.computerView.GetComponentInChildren <WebBrowser>().SetTab(1);
            isFirstTimeComputing = false;
        }
        else
        {
            // gem selling!
            singleton.computerView.GetComponentInChildren <WebBrowser>().SetTab(0);
        }
    }
Пример #2
0
    public static void StartDigging()
    {
        DebtProgression.UpdateProgression(); // could cause a game over

        if (!singleton.mGameOver)
        {
            SaveData.Get().currentDay++;

            // Load the Digging scene
            singleton.isComputerScene = false;
            singleton.computerView.gameObject.SetActive(false);

            singleton.player.StartNewDigDay();

            MusicPlayer.StartPlaying(SaveData.Get().musicStage);
        }
    }