示例#1
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);
    }
示例#2
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);
    }
示例#3
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);
    }
示例#4
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);
    }