File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Assets/JCSUnity/Scripts/Managers Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 66 * $Notice: See LICENSE.txt for modification and distribution information
77 * Copyright (c) 2015 by Shen, Jen-Chieh $
88 */
9+ using System ;
910using System . Collections ;
1011using System . Collections . Generic ;
1112using UnityEngine ;
1718
1819namespace JCSUnity
1920{
20- public delegate void OnSystemLanguageChanged ( SystemLanguage language ) ;
21-
2221 /// <summary>
2322 /// Manager manage application layer.
2423 /// </summary>
@@ -31,7 +30,7 @@ public class JCS_AppManager : JCS_Manager<JCS_AppManager>
3130 public static bool APP_INITIALIZING = true ;
3231
3332 // Execute after the system language has changed.
34- public OnSystemLanguageChanged onSystemLanguageChanged = null ;
33+ public Action < SystemLanguage > onSystemLanguageChanged = null ;
3534
3635 [ Separator ( "Check Variables (JCS_AppManager)" ) ]
3736
@@ -97,8 +96,7 @@ public SystemLanguage systemLanguage
9796 this . mSystemLanguage = value ;
9897 RefreshLangTexts ( ) ;
9998
100- if ( onSystemLanguageChanged != null )
101- onSystemLanguageChanged . Invoke ( value ) ;
99+ onSystemLanguageChanged ? . Invoke ( value ) ;
102100 }
103101 }
104102 public bool SimulateSystemLanguage { get { return this . mSimulateSystemLanguage ; } set { this . mSimulateSystemLanguage = value ; } }
You can’t perform that action at this time.
0 commit comments