Exemplo n.º 1
0
    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
        };
    }
Exemplo n.º 2
0
 public void Refresh()
 {
     embody.Refresh();
 }