示例#1
0
    // Token: 0x06006180 RID: 24960 RVA: 0x00226944 File Offset: 0x00224D44
    private void OnEnable()
    {
        if (!this.toggle)
        {
            return;
        }
        this._locked = VRCInputManager.ShouldForceGamelikeLocomotion();
        if (this._locked)
        {
            this.toggle.isOn         = (this.method == VRCInputManager.LocomotionMethod.Gamelike);
            this.toggle.interactable = false;
            return;
        }
        bool locked = this._locked;

        this._locked     = true;
        this.toggle.isOn = (VRCInputManager.locomotionMethod == this.method);
        this._locked     = locked;
    }