in plane.lua:
-- Just a quick example to show that the virtual
-- machine is global to all script currently
-- compiled. If you want to reset the VM and
-- all its variables etc... call the
-- sio2ResetLuaVM(), this is typical when you
-- are changing level or something... after that
-- remember to initialize it again with sio2InitLua();
-- Just a quick example to show that the virtual
-- machine is global to all script currently
-- compiled. If you want to reset the VM and
-- all its variables etc... call the
-- sio2ResetLuaVM(), this is typical when you
-- are changing level or something... after that
-- remember to initialize it again with sio2InitLua();
转载于:https://blog.51cto.com/sedge/242747