示例#1
0
    // Update is called once per frame
    void Update()
    {
        cLog += "Loading ...\n";
        refreshDevices();

        checkForRobots();

        //Load the robot object (variables related to the selected robot).
        if (runTelly)
        {
            if (GameObject.Find("Robot"))
            {
                Constants.roboStuff.Update(variables, robotMessages);
                foreach (var command in robotMessages.GetCommands())
                {
                    Constants.roboStuff.Command(command, variables, robotMessages);
                }
            }
            else
            {
                cLog += ("Loading Robot HUD");
            }
        }

        cLogPrint.text = cLog;
        Debug.Log(cLog);
        cLog = ("");

        displayRobots.text = printR;
    }