1234567891011121314151617181920212223242526272829303132333435363738394041 |
- using Common.Utility.CombatTimer;
- using Fort23.Core;
- using Fort23.UTool;
- namespace Fort23.Mono
- {
- [UIBinding(prefab = "HeroUpTxtEft")]
- public partial class HeroUpTxtEft : UIComponent
- {
- private TimerEntity _timerEntity;
- private void Init()
- {
- _timerEntity=TimerComponent.Instance.AddTimer(1000, delegate
- {
- UIManager.Instance.DormancyGComponent(this);
- LogTool.Log("Recycle:" + poolObjName);
- _timerEntity = null;
- });
- // UIManager.Instance.
- }
- public override void AddEvent()
- {
- }
- public override void DelEvent()
- {
- }
- public override void AddButtonEvent()
- {
- }
- public override void DormancyObj()
- {
- base.DormancyObj();
- TimerComponent.Instance.Remove(_timerEntity);
- _timerEntity = null;
- }
- }
- }
|