diff --git a/MoCha/Assets/Scenes/Goals.unity b/MoCha/Assets/Scenes/Goals.unity index a2ffa52..5333b1e 100644 Binary files a/MoCha/Assets/Scenes/Goals.unity and b/MoCha/Assets/Scenes/Goals.unity differ diff --git a/MoCha/Assets/Scenes/MonsterCreator.unity b/MoCha/Assets/Scenes/MonsterCreator.unity index 5b8f34c..d0e451a 100644 Binary files a/MoCha/Assets/Scenes/MonsterCreator.unity and b/MoCha/Assets/Scenes/MonsterCreator.unity differ diff --git a/MoCha/Assets/Scripts/GetGoals.cs b/MoCha/Assets/Scripts/GetGoals.cs index 4bd0122..85d3e1a 100644 --- a/MoCha/Assets/Scripts/GetGoals.cs +++ b/MoCha/Assets/Scripts/GetGoals.cs @@ -35,7 +35,7 @@ public class GetGoals : MonoBehaviour { userDistance = (distance * 3.28084); userSteps = steps + savedSteps; PlayerPrefs.SetInt("currentSteps",userSteps); - stepText.text = userSteps.ToString (); + stepText.text = userSteps.ToString () + "/" + stepsGoal.ToString(); userPoints = steps*5 + savedPoints; PlayerPrefs.SetInt("totalPoints",userPoints); @@ -57,7 +57,7 @@ public class GetGoals : MonoBehaviour { // Create a new pedometer pedometer = new Pedometer(OnStep); // Reset UI - stepText.text = savedSteps.ToString (); + stepText.text = savedSteps.ToString () + "/" + stepsGoal.ToString(); if(PlayerPrefs.HasKey("totalPoints")) { pointsText.text = "Points: " + PlayerPrefs.GetInt("totalPoints").ToString (); @@ -76,8 +76,8 @@ public class GetGoals : MonoBehaviour { //goalText.text = prefKey; goalText.color = new Color(0f, 0f, 0f); - - barPos = new Vector2(goalText.transform.position.x - 105, goalText.transform.position.y - 30); + Debug.Log(goalText.transform.position.x.ToString() + " " + goalText.transform.position.y.ToString()); + barPos = new Vector2(goalText.transform.position.x, goalText.transform.position.y); currentDayStr = System.DateTime.Now.ToString("MM/dd/yyyy"); goalDayStr = System.DateTime.Now.ToString("MM/dd/yyyy"); @@ -150,7 +150,7 @@ public class GetGoals : MonoBehaviour { PlayerPrefs.SetInt("currentSteps", userSteps); savedSteps = 0; //OnStep(0,0); - stepText.text = userSteps.ToString (); + stepText.text = userSteps.ToString () + "/" + stepsGoal.ToString(); //destroy the goal and set a new one? savedPoints += stepsGoal*10;