Ejemplo n.º 1
0
    // Start is called before the first frame update
    void Start()
    {
        experimentManager = GameObject.Find("Manager").GetComponent <ExperimentManager>();
        roomba            = GameObject.Find("Manager").GetComponent <RoombaControllerScript>();
        controller        = GameObject.FindGameObjectWithTag("Controller").GetComponent <VIVEController>();
        rb = this.GetComponent <Rigidbody>();

        initialPos = GameObject.Find("Target").transform.position;
    }
Ejemplo n.º 2
0
    // Start is called before the first frame update
    void Start()
    {
        roomba  = this.GetComponent <RoombaControllerScript>();
        manager = GameObject.Find("Manager").GetComponent <ExperimentManager>();

        controller = GameObject.FindGameObjectWithTag("Controller");
        VC         = controller.GetComponent <VIVEController>();
        VE         = controller.GetComponent <VelocityEstimator>();
    }
Ejemplo n.º 3
0
 // Start is called before the first frame update
 void Start()
 {
     rb = this.GetComponent <Rigidbody>();
     experimentManager = GameObject.Find("Manager").GetComponent <ExperimentManager>();
     controller        = GameObject.FindGameObjectWithTag("Controller");
     viveController    = controller.GetComponent <VIVEController>();
     target            = GameObject.Find("Target").GetComponent <Target>();
     anim = this.GetComponent <Animator>();
 }
Ejemplo n.º 4
0
    // Start is called before the first frame update
    void Start()
    {
        experimentManager = GameObject.Find("Manager").GetComponent <ExperimentManager>();
        controller        = GameObject.FindGameObjectWithTag("Controller");
        viveController    = controller.GetComponent <VIVEController>();
        target            = GameObject.Find("Target").GetComponent <Target>();

        test = GameObject.Find("Manager").GetComponent <Test>();
    }