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

            envManager.Shuntdown();

            LogUtil.Reset();
        }
Exemplo n.º 2
0
 public LuaTable GetInstance()
 {
     if (paramValues.Count == 0)
     {
         return(LuaEnvManager.GetInstance().InstanceClass(scriptPath));
     }
     else
     {
         return(LuaEnvManager.GetInstance().InstanceClassWith(scriptPath, paramValues.ToArray()));
     }
 }
Exemplo 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();
 }