// Token: 0x0600171B RID: 5915 RVA: 0x0007BFB8 File Offset: 0x0007A1B8 protected override void OnDisable() { base.OnDisable(); Object.Destroy(this.vrInputModule); if (this.previousEventSystem != null) { this.previousEventSystem.enabled = true; VRTK_EventSystem.CopyValuesFrom(this, this.previousEventSystem); VRTK_EventSystem.SetEventSystemOfBaseInputModules(this.previousEventSystem); } }
// Token: 0x0600171A RID: 5914 RVA: 0x0007BF54 File Offset: 0x0007A154 protected override void OnEnable() { this.previousEventSystem = EventSystem.current; if (this.previousEventSystem != null) { this.previousEventSystem.enabled = false; VRTK_EventSystem.CopyValuesFrom(this.previousEventSystem, this); } this.vrInputModule = base.gameObject.AddComponent <VRTK_VRInputModule>(); base.OnEnable(); base.StartCoroutine(VRTK_EventSystem.SetEventSystemOfBaseInputModulesAfterFrameDelay(this)); }