예제 #1
0
 public object start(string main)
 {
     if (main != null)
     {
         mainState.doFile(main);
         return(mainState.run("main"));
     }
     return(null);
 }
예제 #2
0
 public object start(string main)
 {
     if (main != null)
     {
         mainState.doFile(main);
         return(mainState.run("main"));
         //return mainState.run(main);
     }
     Debug.Log("start为空");
     return(null);
 }
예제 #3
0
 public object start(string main)
 {
     if (main != null)
     {
         mainState.doFile(main);
         using (LuaFunction func = (LuaFunction)mainState["main"]) {
             if (func != null)
             {
                 return(func.call());
             }
         }
     }
     return(null);
 }