示例#1
0
 protected void Awake()
 {
     _trackedObjects[0] = new TrackedController();
     _trackedObjects[1] = new TrackedController();
     _trackedObjects[2] = new TrackedObject();
     _trackedObjects[3] = new TrackedObject();
 }
示例#2
0
 private void Start()
 {
     _colors[0]  = _home.material.color;
     _colors[1]  = _app.material.color;
     _colors[2]  = _dpad.material.color;
     _colors[3]  = _trigger.material.color;
     _colors[4]  = _grip.material.color;
     _controller = FindObjectOfType <DataClient>().GetController(_controllerID);
 }
示例#3
0
 protected override void Start()
 {
     _trackerID = _leftController ? 0 : 1;
     base.Start();
     _controller = (TrackedController)_trackedObject;
 }