Example #1
0
    private void UpdateBankBalance()
    {
        var bankBalance = GamerPrefs.GetMoney();

        bankBalance += okane;
        GamerPrefs.SetMoney(bankBalance);
    }
Example #2
0
    public void AddMoney()
    {
        int money = GamerPrefs.GetMoney();

        money += 1;
        GamerPrefs.SetMoney(money);
        this.money.text = GamerPrefs.GetMoney().ToString();
    }
Example #3
0
 private void HandleOkaneBalance()
 {
     balance           = GamerPrefs.GetMoney(); // æ‚Șい
     okaneBalance      = GameObject.Find("Balance").GetComponent <Text>();
     okaneBalance.text = "Coin 金 :  " + balance;
 }
Example #4
0
 // Use this for initialization
 private void Start()
 {
     money.text = GamerPrefs.GetMoney().ToString();
 }