diff options
Diffstat (limited to 'Thronefall_v1.0/Decompile/SettingsLanguageReset.cs')
-rw-r--r-- | Thronefall_v1.0/Decompile/SettingsLanguageReset.cs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Thronefall_v1.0/Decompile/SettingsLanguageReset.cs b/Thronefall_v1.0/Decompile/SettingsLanguageReset.cs new file mode 100644 index 0000000..776d9be --- /dev/null +++ b/Thronefall_v1.0/Decompile/SettingsLanguageReset.cs @@ -0,0 +1,14 @@ +using I2.Loc; +using UnityEngine; + +public class SettingsLanguageReset : MonoBehaviour +{ + public GameObject objToRefresh; + + public void ResetLanguage() + { + LocalizationManager.CurrentLanguage = LocalizationManager.GetCurrentDeviceLanguage(); + objToRefresh.SetActive(value: false); + objToRefresh.SetActive(value: true); + } +} |