Skip to content

Instantly share code, notes, and snippets.

@erinlin
Last active December 19, 2015 07:09
Show Gist options
  • Save erinlin/5916880 to your computer and use it in GitHub Desktop.
Save erinlin/5916880 to your computer and use it in GitHub Desktop.
statemachine-example01
local sm = require("statemachine")
local process = sm.new(function(self, time)
self:sleep(100)
print("hello")
self:sleep(100)
print("hehe...")
self:sleep(100)
print("end")
end)
process:run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment