diff --git a/MoCha/Assets/Scenes/Goals.unity b/MoCha/Assets/Scenes/Goals.unity index 167c118..49695b6 100644 Binary files a/MoCha/Assets/Scenes/Goals.unity and b/MoCha/Assets/Scenes/Goals.unity differ diff --git a/MoCha/Assets/Scripts/GetGoals.cs b/MoCha/Assets/Scripts/GetGoals.cs index df7b284..1a993e0 100644 --- a/MoCha/Assets/Scripts/GetGoals.cs +++ b/MoCha/Assets/Scripts/GetGoals.cs @@ -29,9 +29,11 @@ public class GetGoals : MonoBehaviour { int userSteps; double userDistance; int totalSteps = 30; + public Text stepText; void OnStep (int steps, double distance) { userSteps = steps; + stepText.text = steps.ToString (); userDistance = (distance * 3.28084); } @@ -101,7 +103,7 @@ public class GetGoals : MonoBehaviour { //needs the total required points for this goal currentDayStr = System.DateTime.Now.ToString("MM/dd/yyyy"); //barDisplay = Time.time*0.05f; //put actual progress here (current/total) - barDisplay = userSteps/totalSteps; + barDisplay = (float)userSteps/(float)totalSteps; //failed to complete goal if(currentDayStr != goalDayStr) {