diff --git a/MoCha/Assets/Scripts/GetGoals.cs b/MoCha/Assets/Scripts/GetGoals.cs index bd49f7b..f4850d9 100644 --- a/MoCha/Assets/Scripts/GetGoals.cs +++ b/MoCha/Assets/Scripts/GetGoals.cs @@ -16,27 +16,39 @@ public class GetGoals : MonoBehaviour { public string prefKey; + public float goalValue; + + //Progress Bar... + public float barDisplay; //current progress + public Vector2 barPos; + Vector2 barSize = new Vector2(227,20); + void Start () { - goalText.text = prefKey; - goalText.color = new Color(1f, 0.5f, 0.8f); + //goalText.text = prefKey; + goalText.color = new Color(0f, 0f, 0f); + + goalText.transform.position = new Vector2(barPos.x + 45.0f,barPos.y + 55.0f); + + + //barPos.x = goalText.transform.position.x; + //barPos.y = goalText.transform.position.y + 10.0f; + + //Debug.Log(barPos.x + " " + barPos.y); + + //barPos.x = 0; + //barPos.y = 0; + currentDayStr = System.DateTime.Now.ToString("MM/dd/yyyy"); goalDayStr = System.DateTime.Now.ToString("MM/dd/yyyy"); Debug.Log(goalDayStr); - Debug.Log("hoauaouou"); + Debug.Log("hauaouou"); if(prefKey == "daily") savePersistantGoalDate("daily"); } - public float goalValue; - - //Progress Bar... - public float barDisplay; //current progress - public Vector2 barPos = new Vector2(20,190); - public Vector2 barSize = new Vector2(60,20); - //Texture the progress bar using these parameters public Texture2D emptyTex; public Texture2D fullTex;