// Token: 0x06001B68 RID: 7016 RVA: 0x0008F4AC File Offset: 0x0008D6AC public void OnUnloaded(VRTK_SDKManager sender) { List <SDK_Base> list = new SDK_Base[] { this.systemSDK, this.boundariesSDK, this.headsetSDK, this.controllerSDK }.ToList <SDK_Base>(); list.ForEach(delegate(SDK_Base sdkBase) { sdkBase.OnBeforeSetupUnload(this); }); base.gameObject.SetActive(false); list.ForEach(delegate(SDK_Base sdkBase) { sdkBase.OnAfterSetupUnload(this); }); VRTK_SDKSetup.LoadEventHandler unloaded = this.Unloaded; if (unloaded != null) { unloaded(sender, this); } }
// Token: 0x06001B67 RID: 7015 RVA: 0x0008F410 File Offset: 0x0008D610 public void OnLoaded(VRTK_SDKManager sender) { List <SDK_Base> list = new SDK_Base[] { this.systemSDK, this.boundariesSDK, this.headsetSDK, this.controllerSDK }.ToList <SDK_Base>(); list.ForEach(delegate(SDK_Base sdkBase) { sdkBase.OnBeforeSetupLoad(this); }); base.gameObject.SetActive(true); VRTK_SDK_Bridge.InvalidateCaches(); this.SetupHeadset(); this.SetupControllers(); this.boundariesSDK.InitBoundaries(); list.ForEach(delegate(SDK_Base sdkBase) { sdkBase.OnAfterSetupLoad(this); }); VRTK_SDKSetup.LoadEventHandler loaded = this.Loaded; if (loaded != null) { loaded(sender, this); } }
/// <summary> /// The OnUnloaded method determines when an SDK Setup has been unloaded. /// </summary> /// <param name="sender">The SDK Manager that has unloaded the SDK Setup.</param> public void OnUnloaded(VRTK_SDKManager sender) { List <SDK_Base> sdkBases = new SDK_Base[] { systemSDK, boundariesSDK, headsetSDK, controllerSDK }.ToList(); sdkBases.ForEach(sdkBase => sdkBase.OnBeforeSetupUnload(this)); gameObject.SetActive(false); sdkBases.ForEach(sdkBase => sdkBase.OnAfterSetupUnload(this)); LoadEventHandler handler = Unloaded; if (handler != null) { handler(sender, this); } }
/// <summary> /// The OnLoaded method determines when an SDK Setup has been loaded. /// </summary> /// <param name="sender">The SDK Manager that has loaded the SDK Setup.</param> public void OnLoaded(VRTK_SDKManager sender) { List <SDK_Base> sdkBases = new SDK_Base[] { systemSDK, boundariesSDK, headsetSDK, controllerSDK }.ToList(); sdkBases.ForEach(sdkBase => sdkBase.OnBeforeSetupLoad(this)); gameObject.SetActive(true); VRTK_SDK_Bridge.InvalidateCaches(); SetupHeadset(); SetupControllers(); boundariesSDK.InitBoundaries(); sdkBases.ForEach(sdkBase => sdkBase.OnAfterSetupLoad(this)); LoadEventHandler handler = Loaded; if (handler != null) { handler(sender, this); } }