Пример #1
0
 private void Start()
 {
     mou = Framework.env1.modules.CreateModule <LanguageModule>();
     mou.Load(() =>
     {
         return(new List <LanPair>()
         {
             new LanPair()
             {
                 Lan = SystemLanguage.Chinese,
                 Value = "哈哈",
                 key = "77"
             },
             new LanPair()
             {
                 Lan = SystemLanguage.English,
                 Value = "haha",
                 key = "77"
             }
         });
     });
     observer = mou.CreatObserver(key, SystemLanguage.English).ObserveEvent((lan, val) => { Log.E(val); });
 }
Пример #2
0
 private void Start()
 {
     mou = Framework.env0.modules.CreateModule <LanguageModule>();
     mou.Load(new TestLoader().Load());
     observer = mou.CreatObserver(key, SystemLanguage.English).ObserveEvent((lan, val) => { Log.E(val); });
 }