private void Start() { OverlayManager.onInitialized += OnOverlaysInitialized; StartCoroutine(LoadBuiltInApps()); SteamVRManager.I.onHeadsetStateChanged.AddListener(OnHeadsetStateChanged); blackoutDP.onInitialized += delegate { blackoutDP.SetOverlayTransform(new Vector3(0f, 0f, 0.13f), Vector3.zero, true, true); }; closeDP.onInteractedWith += delegate(bool b) { if (b) { closeDP.TransitionOverlayWidth(0.07f, 0.3f); } else { closeDP.TransitionOverlayWidth(0.065f, 0.2f); } }; DPSettings.OnLoad((() => { SetBlackoutOpacity(DPSettings.config.dimGameAmount); })); gameArtDP.onInteractedWith += delegate(bool b) { CUIManager.Animate(gameHoverGroup, b); if (b) { gameArtDP.TransitionOverlayWidth(0.205f, 0.2f); } else { gameArtDP.TransitionOverlayWidth(0.2f, 0.1f); } }; WindowListButton.onPress += LaunchAppToMainSnap; WindowListButton.onHeldClose += CloseApp; LoadAllSnapPoints(); }