Пример #1
0
 private void Start()
 {
     _lastParticleCount = _particleCount;
     _particles         = new ParticleSystem.Particle[_particleCount];
     _eyeTracker        = VREyeTracker.Instance;
     _particleSystem    = GetComponent <ParticleSystem>();
     _calibrationObject = VRCalibration.Instance;
 }
        private void Start()
        {
            _sizeOfparent   = HMDPlacementCanvas.PupilLeft.parent.GetComponent <RectTransform>().sizeDelta;
            _sizeOfparent.y = -1 * _sizeOfparent.y;
            _eyeTracker     = VREyeTracker.Instance;
            _calibration    = VRCalibration.Instance;

            transform.parent        = VRUtility.EyeTrackerOriginVive;
            transform.localRotation = Quaternion.identity;
            transform.localPosition = Vector3.zero;
            _leftImage             = HMDPlacementCanvas.PupilLeft.GetComponent <Image>();
            _rightImage            = HMDPlacementCanvas.PupilRight.GetComponent <Image>();
            _center                = new Vector2(0.5f, 0.5f);
            PositioningGuideActive = _positioningGuideActive;
        }
Пример #3
0
 protected override void OnStart()
 {
     base.OnStart();
     _eyeTracker        = VREyeTracker.Instance;
     _calibrationObject = VRCalibration.Instance;
 }
Пример #4
0
 private void Awake()
 {
     _instance = this;
 }