public static ToggleOption CreateToggleOption(string optionName, string hintText = "", Sprite optionIcon = null)
 {
     lock (Instance)
     {
         ToggleOption ret = new ToggleOption(optionName, hintText, optionIcon);
         Instance.customOptions.Add(ret);
         return(ret);
     }
 }
        public static ToggleOption CreateToggleOption(GameplaySettingsPanels panel, string optionName, string submenuName, string hintText = "", Sprite optionIcon = null, float multiplier = 0f)
        {
            lock (Instance[panel])
            {
                ToggleOption ret = new ToggleOption(panel, optionName, hintText, optionIcon, multiplier);
                if (!Instance[panel]._customMenus.ContainsKey(submenuName))
                {
                    Instance[panel]._customMenus[submenuName] = new List <GameOption>();
                }

                Instance[panel]._customMenus[submenuName].Add(ret);
                return(ret);
            }
        }