コード例 #1
0
        public async Task DisableIdAsync(
            ITurnContext turnContext,
            DataId dataId,
            TrackingStyle style = TrackingStyle.TrackEnabled,
            CancellationToken cancellationToken = default)
        {
            BotAssert.ContextNotNull(turnContext);

            if (dataId is null)
            {
                throw new ArgumentNullException(nameof(dataId));
            }

            switch (style)
            {
            case TrackingStyle.TrackEnabled:
                await ForgetIdAsync(turnContext, dataId, cancellationToken).ConfigureAwait(false);

                break;

            case TrackingStyle.TrackDisabled:
                await TrackIdAsync(turnContext, dataId, cancellationToken).ConfigureAwait(false);

                break;
            }
        }
コード例 #2
0
 private void Reset()
 {
     FollowingStyle = MoveStyle.Loose;
     Tracking       = TrackingStyle.AimingAverage;
     TrackDistance  = 2f;
     TrackSpeed     = 5f;
     Offset         = new Vector3(0.5f, 10.0f, -0.5f);
 }
コード例 #3
0
 public void ApplyAll(IKSolverVR solver, TrackingStyle style)
 {
     solver.spine.headTarget   = style.UseHMD ? HMD : HeadTracker;
     solver.leftArm.target     = LeftHandTracker;
     solver.rightArm.target    = RightHandTracker;
     solver.spine.pelvisTarget = style.TrackPelvis ? PelvisTracker : null;
     solver.leftLeg.target     = style.TrackFeet ? LeftFootTracker : null;
     solver.rightLeg.target    = style.TrackFeet ? RightFootTracker : null;
 }
コード例 #4
0
 void Reset()
 {
     FollowingStyle = MoveStyle.Loose;
     Tracking       = TrackingStyle.AimingAverage;
     TrackDistance  = 2f;
     TrackSpeed     = 5f;
     Offset         = new Vector3(0.5f, 10.0f, -0.5f);
     Targets        = new List <GameObject>();
 }
コード例 #5
0
        private void processComponents(TrackingStyle style)
        {
            if (style == null)
            {
                return;
            }

            UISkinDef skin = UISkinManager.defaultSkin;

            if (skin == null)
            {
                return;
            }

            switch (style.StlyeType)
            {
            case TrackingStyle.StyleTypes.Toggle:
                style.setToggle(_normalSprite, _hoverSprite, _activeSprite, _inactiveSprite, _checkmarkSprite);
                break;

            case TrackingStyle.StyleTypes.IconBackground:
                style.setImage(_backgroundSprite);
                break;

            case TrackingStyle.StyleTypes.Button:
                style.setButton(_normalSprite, _hoverSprite, _activeSprite, _inactiveSprite);
                break;

            case TrackingStyle.StyleTypes.Window:
                style.setImage(skin.window.normal.background);
                break;

            case TrackingStyle.StyleTypes.Background:
                style.setImage(skin.box.normal.background);
                break;

            case TrackingStyle.StyleTypes.Input:
                style.setImage(skin.textField.normal.background);
                break;
            }
        }