Advertisement
alestane

Refactored

Apr 4th, 2014
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     function self:Animate(loop)
  2.         if loop ~= self.sequence and self.Sound then
  3.             self.Sound ''
  4.             local tag = loop
  5.             while tag do
  6.                 if self.SoundList[tag] then
  7.                     self.Sound(self.SoundList[tag])
  8.                     break
  9.                 else
  10.                     tag = tag:match("^(.*):[^:]+")
  11.                 end
  12.             end
  13.         end
  14.         return baseAnimate(self, loop)
  15.     end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement