Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function getClick(wait)
- local _, x, y, _, _ = event.pull(wait, "touch")
- if not x == nil and y == nil then
- if x > 12 and x < 19 and y > 16 and y < 18 and component.br_reactor.getActive() == false then
- component.br_reactor.setActive(true)
- elseif x > 12 and x < 19 and y > 16 and y < 18 and component.br_reactor.getActive() == true then
- component.br_reactor.setActive(false)
- elseif x > 71 and x < 74 and y > 0 and y < 2 then
- computer.shutdown()
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement