playerpref steps

This commit is contained in:
asleal2 2018-04-26 04:54:43 -05:00
parent c051a6683c
commit 9291b70295

View file

@ -155,7 +155,6 @@ public class GetGoals : MonoBehaviour {
//destroy the goal and set a new one? //destroy the goal and set a new one?
savedPoints += stepsGoal*10; savedPoints += stepsGoal*10;
PlayerPrefs.SetInt("totalPoints", savedPoints); PlayerPrefs.SetInt("totalPoints", savedPoints);
stepText.text = PlayerPrefs.GetInt("totalPoints").ToString ();
pointsText.text = "Points: " + PlayerPrefs.GetInt("totalPoints").ToString (); pointsText.text = "Points: " + PlayerPrefs.GetInt("totalPoints").ToString ();
} }