示例#1
0
        public void Apply(bool save)
        {
            Debug.Log("PLAYERPROFILE: Applying preferences - saving? " + save.ToString());
            Video.Apply();
            Sound.Apply();
            Controls.Apply(true);
            Immersion.Apply();
            Mods.Apply();
            Accessibility.Apply();
            if (CustomColors != null && !CustomColors.IsEmpty)
            {
                Colors.Get.PushInterfaceColors(CustomColors.InterfaceColors);
            }

            if (save)
            {
                Profile.Get.SaveImmediately(ProfileComponents.Preferences);
            }
        }