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