示例#1
0
    private void UpdateBankBalance()
    {
        int bankBalance = GamerPrefs.GetOkane();

        bankBalance += okane;
        GamerPrefs.SetOkane(bankBalance);
    }
示例#2
0
    public void AddMoney()
    {
        int money = GamerPrefs.GetOkane();

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