public EmbodyContext(MVRScript plugin, IEmbody embody) { this.plugin = plugin; this.embody = embody; containingAtom = plugin.containingAtom; leftHandToggle = new JSONStorableBool("Left Hand Enabled", true, val => { trackers.leftHandMotionControl.enabled = val; trackers.RefreshHands(); embody.Refresh(); }) { isStorable = false }; rightHandToggle = new JSONStorableBool("Right Hand Enabled", true, val => { trackers.rightHandMotionControl.enabled = val; trackers.RefreshHands(); embody.Refresh(); }) { isStorable = false }; }
public void Refresh() { embody.Refresh(); }