File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Assets/JCSUnity/Scripts/Managers Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 1717
1818namespace JCSUnity
1919{
20+ public delegate void OnSystemLanguageChanged ( SystemLanguage language ) ;
21+
2022 /// <summary>
2123 /// Manager manage application layer.
2224 /// </summary>
@@ -28,6 +30,8 @@ public class JCS_AppManager : JCS_Manager<JCS_AppManager>
2830 public static bool APP_QUITTING = false ;
2931 public static bool APP_INITIALIZING = true ;
3032
33+ public OnSystemLanguageChanged onSystemLanguageChanged = null ;
34+
3135 [ Separator ( "Check Variables (JCS_AppManager)" ) ]
3236
3337 [ Tooltip ( "Current systme language." ) ]
@@ -92,6 +96,9 @@ public SystemLanguage systemLanguage
9296 {
9397 this . mSystemLanguage = value ;
9498 RefreshLangTexts ( ) ;
99+
100+ if ( onSystemLanguageChanged != null )
101+ onSystemLanguageChanged . Invoke ( value ) ;
95102 }
96103 }
97104 public bool RequestCamera { get { return this . mRequestCamera ; } }
You can’t perform that action at this time.
0 commit comments