示例#1
0
        void Start()
        {
            this.conversionAngleMap = OvrHandTrackingUtils.GetJsonData(this.fileName);

            this.avatarTransformMap = OvrHandTrackingUtils.GetAvatarFingerTransformMap(this.GetComponent <Animator>());

            StartCoroutine(this.SetOvrTransformMapCoroutine());
        }
示例#2
0
        private IEnumerator SetOvrTransformMapCoroutine()
        {
            while (!this.isHandAppearing)
            {
                if (this.ovrLeftHand.childCount > 0 && this.ovrRightHand.childCount > 0)
                {
                    this.ovrTransformMap = OvrHandTrackingUtils.GetOvrTransformMap(this.ovrLeftHand, this.ovrRightHand);

                    this.isHandAppearing = true;
                }

                yield return(new WaitForSeconds(1.0f));
            }
        }
示例#3
0
        //-----------

        void Start()
        {
            OvrHandTrackingUtils.CreateConversionAngleFile(this.avatar.GetComponent <Animator>(), this.ovrLeftHand, this.ovrRightHand, this.fileName);
        }