void Start() { to = TimeCalculationScript.tcs; timeText = GetComponent<Text>(); //guiMinY = -330; //guiMaxY = 310; //guiDelta = guiMaxY - guiMinY; transform.localPosition = new Vector3 (x, guiMinY, 0); }
void Start() { to = TimeCalculationScript.tcs; timeText = GetComponent <Text>(); //guiMinY = -330; //guiMaxY = 310; //guiDelta = guiMaxY - guiMinY; transform.localPosition = new Vector3(x, guiMinY, 0); }
//------------------------------------------------------------------------------------------ // Use this for initialization void Start() { to = TimeCalculationScript.tcs; // Get the global static tcs slider = GetComponent<Slider> (); tgtAvg = GameObject.Find ("TgtAvg").GetComponent<Text> (); ca = GameObject.Find ("AvgComputer").GetComponent<ComputeAverages> (); //Debug.Log ("ca.efficiency = " + ca.efficiency + " slider.value = " + slider.value); }
//------------------------------------------------------------------------------------------ // Use this for initialization void Start() { to = TimeCalculationScript.tcs; // Get the global static tcs slider = GetComponent <Slider> (); tgtAvg = GameObject.Find("TgtAvg").GetComponent <Text> (); ca = GameObject.Find("AvgComputer").GetComponent <ComputeAverages> (); //Debug.Log ("ca.efficiency = " + ca.efficiency + " slider.value = " + slider.value); }
//private float yscale; // Use this for initialization void Start() { //Debug.Log ("AnimateWaterScript.Start() called"); fps = 10; spriteRenderer = GetComponent<Renderer>() as SpriteRenderer; to = GameObject.Find ("TimeObject").GetComponent<TimeCalculationScript> (); // CHEAT: The water top animation bit isn't visible and is scaled very small // in the y-direction at start. // I'm hoping to remove this once I get a blocking sprite in place. //transform.localScale = new Vector3(90,0,90); }
//private float yscale; // Use this for initialization void Start() { //Debug.Log ("AnimateWaterScript.Start() called"); fps = 10; spriteRenderer = GetComponent <Renderer>() as SpriteRenderer; to = GameObject.Find("TimeObject").GetComponent <TimeCalculationScript> (); // CHEAT: The water top animation bit isn't visible and is scaled very small // in the y-direction at start. // I'm hoping to remove this once I get a blocking sprite in place. //transform.localScale = new Vector3(90,0,90); }
//------------------------------------------------------------------------------------------ void Start() { // Get handles to all the text averages we are updating. avgText = GameObject.Find ("AvgText").GetComponent<Text>(); minText = GameObject.Find ("MinText").GetComponent<Text>(); maxText = GameObject.Find ("MaxText").GetComponent<Text>(); efficiency = 0.0f; maxEfficiency = 0.0f; minEfficiency = 0.0f; to = TimeCalculationScript.tcs; }
//------------------------------------------------------------------------------------------ void Start() { // Get handles to all the text averages we are updating. avgText = GameObject.Find("AvgText").GetComponent <Text>(); minText = GameObject.Find("MinText").GetComponent <Text>(); maxText = GameObject.Find("MaxText").GetComponent <Text>(); efficiency = 0.0f; maxEfficiency = 0.0f; minEfficiency = 0.0f; to = TimeCalculationScript.tcs; }
//------------------------------------------------------------------------------------------ // Make sure we only have one of these. void Awake() { Debug.Log("TCS.Awake() called."); if (tcs == null) { Debug.Log("Creating static TCS"); DontDestroyOnLoad(gameObject); tcs = this; } else if (tcs != this) { Debug.Log("Already have a TCS. Destroying new one"); Destroy(gameObject); } }
//------------------------------------------------------------ void Start() { to = TimeCalculationScript.tcs; // Get our static time information // Get all of the GameObjects we will be updating sessionTime = GameObject.Find("SessionTime").GetComponent <Text>(); numSes = GameObject.Find("NumSes").GetComponent <Text>(); avgSes = GameObject.Find("AvgSes").GetComponent <Text>(); numBreaks = GameObject.Find("NumBreaks").GetComponent <Text>(); avgBreak = GameObject.Find("AvgBreak").GetComponent <Text>(); breakTime = GameObject.Find("BreakTime").GetComponent <Text>(); totalTime = GameObject.Find("TotalTime").GetComponent <Text> (); // Initialize this immediately because Update() updates the sessionTime string and requires this as input. startDT = System.DateTime.Now; // Initialize this since startSession() isn't called until the first time the user clicks for a break. numSes.text = string.Format("Session #: {0:d2}", sessions.Count + 1); }
// Use this for initialization void Start() { to = TimeCalculationScript.tcs; // Get the global static tcs slider = GameObject.Find ("TargetEfficiencySlider").GetComponent<Slider> (); tgtHMS = GetComponent<Text> (); }
// Use this for initialization void Start() { to = TimeCalculationScript.tcs; t = GetComponent<Text>(); }
// Use this for initialization void Start() { to = TimeCalculationScript.tcs; t = GetComponent <Text>(); }
//------------------------------------------------------------------------------------------ // Make sure we only have one of these. void Awake() { Debug.Log ("TCS.Awake() called."); if (tcs == null) { Debug.Log ("Creating static TCS"); DontDestroyOnLoad (gameObject); tcs = this; } else if (tcs != this) { Debug.Log ("Already have a TCS. Destroying new one"); Destroy(gameObject); } }
// Use this for initialization void Start() { timeStartText = GameObject.Find("TimeStartText").GetComponent <Text> (); to = TimeCalculationScript.tcs; timeStartText.text = "Start: " + to.startTime.ToString("hh:mmtt\n"); }
// Use this for initialization void Start() { timeStartText = GameObject.Find ("TimeStartText").GetComponent<Text> (); to = TimeCalculationScript.tcs; timeStartText.text = "Start: " + to.startTime.ToString ("hh:mmtt\n"); }
// Use this for initialization void Start() { to = TimeCalculationScript.tcs; // Get the global static tcs slider = GameObject.Find("TargetEfficiencySlider").GetComponent <Slider> (); tgtFinishTime = GetComponent <Text> (); }
//------------------------------------------------------------ void Start() { to = TimeCalculationScript.tcs; // Get our static time information // Get all of the GameObjects we will be updating sessionTime = GameObject.Find ("SessionTime").GetComponent<Text>(); numSes = GameObject.Find ("NumSes").GetComponent<Text>(); avgSes = GameObject.Find ("AvgSes").GetComponent<Text>(); numBreaks = GameObject.Find ("NumBreaks").GetComponent<Text>(); avgBreak = GameObject.Find ("AvgBreak").GetComponent<Text>(); breakTime = GameObject.Find ("BreakTime").GetComponent<Text>(); totalTime = GameObject.Find ("TotalTime").GetComponent<Text> (); // Initialize this immediately because Update() updates the sessionTime string and requires this as input. startDT = System.DateTime.Now; // Initialize this since startSession() isn't called until the first time the user clicks for a break. numSes.text = string.Format ("Session #: {0:d2}", sessions.Count+1); }