public object start(string main) { if (main != null) { mainState.doFile(main); return(mainState.run("main")); } return(null); }
public object start(string main) { if (main != null) { mainState.doFile(main); return(mainState.run("main")); //return mainState.run(main); } Debug.Log("start为空"); return(null); }
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); }