示例#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;
    }
示例#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>();
    }
示例#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>();
 }
示例#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>();
    }