diff options
Diffstat (limited to 'Thronefall_1_57/Decompile/I2.Loc/CustomLocalizeCallback.cs')
| -rw-r--r-- | Thronefall_1_57/Decompile/I2.Loc/CustomLocalizeCallback.cs | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/Thronefall_1_57/Decompile/I2.Loc/CustomLocalizeCallback.cs b/Thronefall_1_57/Decompile/I2.Loc/CustomLocalizeCallback.cs deleted file mode 100644 index d308920..0000000 --- a/Thronefall_1_57/Decompile/I2.Loc/CustomLocalizeCallback.cs +++ /dev/null @@ -1,26 +0,0 @@ -using UnityEngine; -using UnityEngine.Events; - -namespace I2.Loc; - -[AddComponentMenu("I2/Localization/I2 Localize Callback")] -public class CustomLocalizeCallback : MonoBehaviour -{ - public UnityEvent _OnLocalize = new UnityEvent(); - - public void OnEnable() - { - LocalizationManager.OnLocalizeEvent -= OnLocalize; - LocalizationManager.OnLocalizeEvent += OnLocalize; - } - - public void OnDisable() - { - LocalizationManager.OnLocalizeEvent -= OnLocalize; - } - - public void OnLocalize() - { - _OnLocalize.Invoke(); - } -} |
