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; } }
private void Reset() { FollowingStyle = MoveStyle.Loose; Tracking = TrackingStyle.AimingAverage; TrackDistance = 2f; TrackSpeed = 5f; Offset = new Vector3(0.5f, 10.0f, -0.5f); }
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; }
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>(); }
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; } }