private void UpdateBankBalance() { int bankBalance = GamerPrefs.GetOkane(); bankBalance += okane; GamerPrefs.SetOkane(bankBalance); }
public void AddMoney() { int money = GamerPrefs.GetOkane(); money += 1; GamerPrefs.SetOkane(money); this.money.text = GamerPrefs.GetOkane().ToString(); }
private void HandleOkaneBalance() { balance = GamerPrefs.GetOkane(); // 悪い okaneBalance = GameObject.Find("Balance").GetComponent <Text>(); okaneBalance.text = "Coin 金 : " + balance; }
// Use this for initialization private void Start() { money.text = GamerPrefs.GetOkane().ToString(); }