playerpref steps
This commit is contained in:
parent
c051a6683c
commit
9291b70295
1 changed files with 0 additions and 1 deletions
|
@ -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 ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue