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