public void SaveMoney(bool isInit = false) { var money = new MoneyObject { money = _moneyController.Money }; _saveObject.moneyInfo = money; if (!isInit) { Save(); } }
public void LoadData(MoneyObject obj) { Money = obj.money; OnMoneySet(); }