Skip to content

Instantly share code, notes, and snippets.

@mkosler
Created January 25, 2014 17:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mkosler/8620460 to your computer and use it in GitHub Desktop.
Save mkosler/8620460 to your computer and use it in GitHub Desktop.
function Level:setMood(mood)
for i,interactive in ipairs(self.interactives) do
if interactive.name == "Barrier" then
interactive.body:setActive(interactive.type ~= mood)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment