Beispiel #1
0
    void LoadTheMoneyMaker()
    {
        MakingMoneyController moneyMaker = GetComponent <MakingMoneyController>();

        moneyMaker.collectebleMoney = PlayerPrefs.GetInt("moneyMaker.collectableMoney");
        moneyMaker.addingMoney      = PlayerPrefs.GetInt("moneyMaker.addingMoney");
        moneyMaker.maximumMoney     = PlayerPrefs.GetInt("moneyMaker.maximumMoney");
    }
Beispiel #2
0
    void SaveTheMoneyMaker()
    {
        MakingMoneyController moneyMaker = GetComponent <MakingMoneyController>();

        PlayerPrefs.SetInt("moneyMaker.collectableMoney", moneyMaker.collectebleMoney);
        PlayerPrefs.SetInt("moneyMaker.addingMoney", moneyMaker.addingMoney);
        PlayerPrefs.SetInt("moneyMaker.maximumMoney", moneyMaker.maximumMoney);
    }