void LoadTheMoneyMaker() { MakingMoneyController moneyMaker = GetComponent <MakingMoneyController>(); moneyMaker.collectebleMoney = PlayerPrefs.GetInt("moneyMaker.collectableMoney"); moneyMaker.addingMoney = PlayerPrefs.GetInt("moneyMaker.addingMoney"); moneyMaker.maximumMoney = PlayerPrefs.GetInt("moneyMaker.maximumMoney"); }
void SaveTheMoneyMaker() { MakingMoneyController moneyMaker = GetComponent <MakingMoneyController>(); PlayerPrefs.SetInt("moneyMaker.collectableMoney", moneyMaker.collectebleMoney); PlayerPrefs.SetInt("moneyMaker.addingMoney", moneyMaker.addingMoney); PlayerPrefs.SetInt("moneyMaker.maximumMoney", moneyMaker.maximumMoney); }