示例#1
0
    //END OF UPDTADE()

    //write an external log of the statistics of the gameplay of the user
    public void writeToLog(string countryName, string guessTime, string hint1, string hint2)
    {
        IOOperations.WriteToSave("Country: " + countryName + "\n", true, false);
        IOOperations.WriteToSave("Correct Guess Time: " + guessTime + "\n");
        IOOperations.WriteToSave("Hint Level 1: " + hint1 + "\n");
        IOOperations.WriteToSave("Hint Level 2: " + hint2, false, true);
    }
示例#2
0
    //set the whole scene after coming from menu or from a photosphere
    private void startGame(bool resume = false)
    {
        if (!resume)
        {
            foreach (CountryObject c in CountryPopulator.countryList)
            {
                c.chosen = false;
            }
            GlobalVariables.correctGuesses = 0;
            GlobalVariables.startedPlaying = true;
            int index = Random.Range(1, CountryPopulator.countryList.Count + 1);
            GlobalVariables.correctCountry = GlobalVariables.getCountry(index);
            IOOperations.WriteToSave("Category:" + GlobalVariables.category, true, false, true);
            CountryPopulator.setUpHint(GlobalVariables.correctCountry, GlobalVariables.category);
        }
        else
        {
            CountryPopulator.setUpHint(GlobalVariables.correctCountry, GlobalVariables.category);
            GlobalVariables.resume = false;
            photosphered           = false;
        }

        guessTimer = 0f;
    }