Ejemplo n.º 1
0
    private void UpdateBankBalance()
    {
        var bankBalance = GamerPrefs.GetMoney();

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

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