void OnDestroy()
        {
            if (simulateLowEndDeviceSetting)
            {
                simulateLowEndDeviceSetting.toggle.isOn = false;
            }

            Instance = null;
        }
        void Awake()
        {
            Instance = this;

            transform.GetComponentAtPath("SettingsScrollView/SettingsPanel", out settingsPanel);
            transform.GetComponentAtPath("TitlePanel/LabelText", out titleText);
            transform.GetComponentAtPath("NavPanelParent/BackPanel/Button", out backButtonBehavior);
            transform.GetComponentAtPath("NavPanelParent/NextPanel/Button", out nextButtonBehavior);
            settingsPanel.GetComponentAtPath("ScrollToPanel", out scrollToPanel);
            settingsPanel.GetComponentAtPath("SetCountPanel", out setCountPanel);

            SetSceneName();

            var p = transform;

            while (!_ScrollRect && (p = p.parent))
            {
                _ScrollRect = p.GetComponent <ScrollRect>();
            }
        }