/// <summary> /// 初始化Lua /// </summary> private void initLuaWorker() { string luaText = "Script.Main.Main"; worker = new LuaWorker(luaText); worker.DoFile(); }
protected override void Awake() { if (_worker == null) { _worker = new LuaWorker(_LuaFile); } else { _worker.LuaFile = _LuaFile; } _worker.DoInit = setBehaviour; _worker.DoFile(null); }
static public int DoFile(IntPtr l) { try { LuaWorker self = (LuaWorker)checkSelf(l); System.String a1; checkType(l, 2, out a1); self.DoFile(a1); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }