AnimatorMgr.lua 476 B

12345678910111213141516171819202122232425
  1. local AnimatorMgr = class("AnimatorMgr")
  2. function AnimatorMgr:ctor()
  3. end
  4. function AnimatorMgr:PlayUIAni(animator, name, inter, cb)
  5. animator:Play(name)
  6. if inter ~= nil then
  7. return ManagerContainer.LuaTimerMgr:AddLuaTimer(inter, 1, function(sequence, param)
  8. cb()
  9. end, nil)
  10. else
  11. if cb ~= nil then
  12. cb()
  13. end
  14. end
  15. end
  16. function AnimatorMgr:Destroy()
  17. if tolua.getpeer(self) ~= nil then
  18. tolua.setpeer(self, nil)
  19. end
  20. end
  21. return AnimatorMgr