static public int SetEnv(IntPtr l) { try { LuaWorker self = (LuaWorker)checkSelf(l); System.String a1; checkType(l, 2, out a1); System.Object a2; checkType(l, 3, out a2); System.Boolean a3; checkType(l, 4, out a3); self.SetEnv(a1, a2, a3); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
//设置执行的table对象 virtual public void setBehaviour(LuaTable myTable) { _worker.SetEnv("this", this, false); _worker.SetEnv("transform", transform, false); _worker.SetEnv("gameObject", gameObject, false); }