void Start() { this.conversionAngleMap = OvrHandTrackingUtils.GetJsonData(this.fileName); this.avatarTransformMap = OvrHandTrackingUtils.GetAvatarFingerTransformMap(this.GetComponent <Animator>()); StartCoroutine(this.SetOvrTransformMapCoroutine()); }
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)); } }
//----------- void Start() { OvrHandTrackingUtils.CreateConversionAngleFile(this.avatar.GetComponent <Animator>(), this.ovrLeftHand, this.ovrRightHand, this.fileName); }