// Use this for initialization void Start() { //Debug.Log ("PositionMinBox.Start() called"); computeAveragesScript = GameObject.Find ("AvgComputer").GetComponent<ComputeAverages>(); guiMinY = -198; guiMaxY = 458; guiDelta = guiMaxY - guiMinY; transform.localPosition = new Vector3 (0, guiMaxY, 0); }
// Use this for initialization void Start() { //Debug.Log ("PositionMinBox.Start() called"); computeAveragesScript = GameObject.Find("AvgComputer").GetComponent <ComputeAverages>(); guiMinY = -198; guiMaxY = 458; guiDelta = guiMaxY - guiMinY; transform.localPosition = new Vector3(0, guiMaxY, 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); }