Room列表迭代

This commit is contained in:
ALIENJACK\alien 2024-11-07 19:23:59 +08:00
parent 9c168a5e29
commit e3c9ac625c
2 changed files with 11 additions and 0 deletions

View File

@ -37,6 +37,11 @@ namespace AxibugEmuOnline.Client.UI
Reset(); Reset();
} }
protected virtual void OnDestroy()
{
}
public void SetData(MenuData data) public void SetData(MenuData data)
{ {
Reset(); Reset();

View File

@ -11,6 +11,12 @@ namespace AxibugEmuOnline.Client
protected override void Awake() protected override void Awake()
{ {
Eventer.Instance.RegisterEvent<int>(EEvent.OnRoomListAllUpdate, OnRoomListUpdateAll); Eventer.Instance.RegisterEvent<int>(EEvent.OnRoomListAllUpdate, OnRoomListUpdateAll);
base.Awake();
}
protected override void OnDestroy()
{
Eventer.Instance.UnregisterEvent<int>(EEvent.OnRoomListAllUpdate, OnRoomListUpdateAll);
} }
public override bool OnEnterItem() public override bool OnEnterItem()