// Token: 0x06006183 RID: 24963 RVA: 0x002269F0 File Offset: 0x00224DF0 private void OnEnable() { if (this.toggle) { if (VRCInputManager.IsRequired(this.method)) { this.toggle.interactable = false; this.toggle.isOn = true; } else if (!VRCInputManager.IsSupported(this.method)) { this.toggle.interactable = false; this.toggle.isOn = false; } else { this.toggle.interactable = true; this.toggle.isOn = VRCInputManager.IsEnabled(this.method); } } if (this.disable) { bool active = VRCInputManager.IsEnabled(this.method) && VRCInputManager.IsSupported(this.method); foreach (VRCInputManager.InputMethod input in this.disableExclusiveOf) { if (VRCInputManager.IsSupported(input) && VRCInputManager.IsEnabled(input)) { active = false; } } this.disable.SetActive(active); } }
// Token: 0x0600561F RID: 22047 RVA: 0x001DA952 File Offset: 0x001D8D52 public static bool ShouldForceEnableHeadLookWalk() { return(!VRCApplicationSetup.IsEditor() && (VRCInputManager.IsRequired(VRCInputManager.InputMethod.Vive) || VRCInputManager.IsRequired(VRCInputManager.InputMethod.Oculus))); }