loader.script 285 B

1234567891011
  1. function init(self)
  2. msg.post(".", "acquire_input_focus")
  3. msg.post("#physicsproxy", "load")
  4. end
  5. function on_message(self, message_id, message, sender)
  6. if message_id == hash("proxy_loaded") then
  7. msg.post(sender, "init")
  8. msg.post(sender, "enable")
  9. end
  10. end