private static int AddCullingMask(ILuaState lua) { int cullingMask = lua.ChkInteger(1); string layerName = lua.ChkString(2); lua.PushInteger(cullingMask.AddCullingMask(layerName)); return(1); }