public static int OnPlaySound(IntPtr l) { int result; try { AudioUtility audioUtility = (AudioUtility)LuaObject.checkSelf(l); OnClickSound e; LuaObject.checkType <OnClickSound>(l, 2, out e); string name; LuaObject.checkType(l, 3, out name); audioUtility.OnPlaySound(e, name); LuaObject.pushValue(l, true); result = 1; } catch (Exception e2) { result = LuaObject.error(l, e2); } return(result); }