Example #1
0
    ////////////////////////////////////////
    /// Standard MonoBehaviour functions ///
    ////////////////////////////////////////

    /// <summary>
    /// Runs when the scene is entered. This is the first thing that happens, and it
    /// happens only once. Use this function for initializing objects and for setting
    /// values that don't matter to other objects. Don't use this to communicate with
    /// other objects because you don't know which objects have already had their
    /// Awake() functions called.
    /// </summary>
    void Awake()
    {
        robot = GameObject.Find("RobotConnection").GetComponent <Barrett.UnityInterface.RobotConnection> ();
    }
Example #2
0
    ////////////////////////////////////////
    /// Standard MonoBehaviour functions ///
    ////////////////////////////////////////

    /// <summary>
    /// Runs when the scene is entered. This is the first thing that happens, and it
    /// happens only once. Use this function for initializing objects and for setting
    /// values that don't matter to other objects. Don't use this to communicate with
    /// other objects because you don't know which objects have already had their
    /// Awake() functions called.
    /// </summary>
    void Awake()
    {
        robot_left = GameObject.Find("RobotConnectionLeft").GetComponent <Barrett.UnityInterface.RobotConnection> ();
        /// robot_left.name = "robot_left";
    }
Example #3
0
 void Awake()
 {
     robot = GameObject.Find("RobotConnection").GetComponent <Barrett.UnityInterface.RobotConnection> ();
     Debug.Log(robot);
     dampingText.text = "Damping is OFF. Press D to toggle.";
 }