| | |
| | | [SerializeField] Button cutBtn; |
| | | [SerializeField] Text cutText; |
| | | [SerializeField] Text timeText; |
| | | |
| | | [SerializeField] UIHeroController heroController; |
| | | |
| | | |
| | | |
| | |
| | | scroller.OnRefreshCell += OnRefreshCell; |
| | | GuildManager.Instance.UpdateZhenbaogeEvent += OnPlayerZBGEvent; |
| | | GlobalTimeEvent.Instance.secondEvent += OnSecondEvent; |
| | | GlobalTimeEvent.Instance.fiveSecondEvent += OnFiveSecondEvent; |
| | | |
| | | Display(); |
| | | CreateScroller(); |
| | |
| | | scroller.OnRefreshCell -= OnRefreshCell; |
| | | GuildManager.Instance.UpdateZhenbaogeEvent -= OnPlayerZBGEvent; |
| | | GlobalTimeEvent.Instance.secondEvent -= OnSecondEvent; |
| | | GlobalTimeEvent.Instance.fiveSecondEvent -= OnFiveSecondEvent; |
| | | } |
| | | |
| | | void OnSecondEvent() |
| | |
| | | timeText.text = Language.Get("Guild_74", TimeUtility.SecondsToShortDHMS((int)(TimeUtility.GetTodayEndTime() - TimeUtility.ServerNow).TotalSeconds)); |
| | | } |
| | | |
| | | int index = 0; |
| | | void OnFiveSecondEvent() |
| | | { |
| | | index++; |
| | | heroController.PlayAnimation(index % 2 == 0 ? "idle" : "hanhua", true); |
| | | } |
| | | void OnRefreshCell(ScrollerDataType type, CellView cell) |
| | | { |
| | | var _cell = cell as GuildHawkerCutCell; |