Ejemplo n.º 1
0
 public static string convertAgeTypeToString(PS_InputField.ageTypes ageType)
 {
     if (ageType == PS_InputField.ageTypes.age5)
     {
         return("5");
     }
     else if (ageType == PS_InputField.ageTypes.age6)
     {
         return("6");
     }
     else if (ageType == PS_InputField.ageTypes.age7)
     {
         return("7");
     }
     else if (ageType == PS_InputField.ageTypes.age8)
     {
         return("8");
     }
     else if (ageType == PS_InputField.ageTypes.age9)
     {
         return("9");
     }
     else if (ageType == PS_InputField.ageTypes.age10)
     {
         return("10+");
     }
     else
     {
         Debug.LogWarning("No matching age type found.");
         return("?");
     }
 }
 public void setCurrentPlayer(string newName, Guid uniqueID, PS_InputField.ageTypes age)
 {
     saveLoad.setCurrentPlayer(newName, uniqueID, age);
     loadData();
     if (newSessionStarted != null)
     {
         newSessionStarted();
     }
 }
Ejemplo n.º 3
0
 public void setChangedPlayerAge(PS_InputField.ageTypes newAge, int buttonID)
 {
     playerAges[buttonID] = newAge;
     Save();
 }
Ejemplo n.º 4
0
 public void addPlayerAge(PS_InputField.ageTypes newPlayerAge)
 {
     playerAges.Add(newPlayerAge);
     Save();
 }
    /*
     * public FMC_SaveLoad (FMC_Settings_StoryMode _storyModeSettings, FMC_Settings_OneTimesOne _oneTimesOneSettings, FMC_Settings_Freestyle _freestyleSettings, FMC_Statistics _statistics)
     * {
     * expirationDate = DateTime.MinValue;
     *
     * storyModeSettings = _storyModeSettings;
     * oneTimesOneSettings = _oneTimesOneSettings;
     * freestyleSettings = _freestyleSettings;
     * statistics = _statistics;
     *
     *
     * loadPurchaseInformation();
     *
     * //PlayerPrefs.DeleteAll();s
     * if (PlayerPrefs.HasKey ("MoneyDave")) {
     *    PlayerPrefs.SetInt("MoneyDave", 100000);
     *    Debug.Log("Mony Dave: "+PlayerPrefs.GetInt("MoneyDave"));
     * }
     * }
     */

    public void setCurrentPlayer(string name, Guid uniqeID, PS_InputField.ageTypes age)
    {
        currentPlayerName = name;
        currentPLayerID   = uniqeID;
        currentPlayerAge  = age;
    }