示例#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");
    }
示例#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);
    }