HeroUpTxtEft.cs 961 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using Common.Utility.CombatTimer;
  2. using Fort23.Core;
  3. using Fort23.UTool;
  4. namespace Fort23.Mono
  5. {
  6. [UIBinding(prefab = "HeroUpTxtEft")]
  7. public partial class HeroUpTxtEft : UIComponent
  8. {
  9. private TimerEntity _timerEntity;
  10. private void Init()
  11. {
  12. _timerEntity=TimerComponent.Instance.AddTimer(1000, delegate
  13. {
  14. UIManager.Instance.DormancyGComponent(this);
  15. LogTool.Log("Recycle:" + poolObjName);
  16. _timerEntity = null;
  17. });
  18. // UIManager.Instance.
  19. }
  20. public override void AddEvent()
  21. {
  22. }
  23. public override void DelEvent()
  24. {
  25. }
  26. public override void AddButtonEvent()
  27. {
  28. }
  29. public override void DormancyObj()
  30. {
  31. base.DormancyObj();
  32. TimerComponent.Instance.Remove(_timerEntity);
  33. _timerEntity = null;
  34. }
  35. }
  36. }