Esempio n. 1
0
        private void OnDestroy()
        {
            LuaEnvManager envManager = LuaEnvManager.GetInstance();

            envManager.Shuntdown();

            LogUtil.Reset();
        }
Esempio n. 2
0
 public LuaTable GetInstance()
 {
     if (paramValues.Count == 0)
     {
         return(LuaEnvManager.GetInstance().InstanceClass(scriptPath));
     }
     else
     {
         return(LuaEnvManager.GetInstance().InstanceClassWith(scriptPath, paramValues.ToArray()));
     }
 }
Esempio n. 3
0
 protected override void Awake()
 {
     if (Application.isPlaying && !string.IsNullOrEmpty(localizationName))
     {
         LuaEnvManager envMgr = LuaEnvManager.GetInstance();
         if (envMgr != null)
         {
             text = envMgr.Language.GetText(localizationName);
         }
     }
     base.Awake();
 }