예제 #1
0
        // 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);
            }
        }
예제 #2
0
        // 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);
            }
        }