Esempio n. 1
0
    /// <summary>
    /// 初始化Lua
    /// </summary>
    private void initLuaWorker()
    {
        string luaText = "Script.Main.Main";

        worker = new LuaWorker(luaText);
        worker.DoFile();
    }
Esempio n. 2
0
 protected override void Awake()
 {
     if (_worker == null)
     {
         _worker = new LuaWorker(_LuaFile);
     }
     else
     {
         _worker.LuaFile = _LuaFile;
     }
     _worker.DoInit = setBehaviour;
     _worker.DoFile(null);
 }
Esempio n. 3
0
 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));
     }
 }