// Update is called once per frame void Update() { if (Input.GetKeyDown(KeyCode.R)) { time = 0f; } SetText.UpdateText(time.ToString("0.##")); time += Time.deltaTime; }
private void AddMoney() { PlayerPrefs.SetInt("money", PlayerPrefs.GetInt("money") + 1); _moneyText.UpdateText(); }