diff --git a/Assets/Temp/Scripts/View_Panel2.cs b/Assets/Temp/Scripts/View_Panel2.cs index 3d62303a..a53ac533 100644 --- a/Assets/Temp/Scripts/View_Panel2.cs +++ b/Assets/Temp/Scripts/View_Panel2.cs @@ -248,6 +248,7 @@ public class View_Panel2 : XUIPanel public void OnRegisterFunction() { + //AdamSync.SyncCreateRoom.joinRoomRequset -= OnJoinRoom; //AdamSync.SyncCreateRoom.createRoomRequset += OnCreateRoom; AdamSync.SyncCreateRoom.joinRoomRequset += OnJoinRoom; //AdamSync.SyncCreateRoom.getRoomsRequset += OnGetRooms; @@ -855,14 +856,14 @@ public class View_Panel2 : XUIPanel { Debug.Log("OnDisable"); //AdamSync.SyncCreateRoom.createRoomRequset -= OnCreateRoom; - AdamSync.SyncCreateRoom.joinRoomRequset += OnJoinRoom; + //AdamSync.SyncCreateRoom.joinRoomRequset -= OnJoinRoom; //AdamSync.SyncCreateRoom.getRoomsRequset += OnGetRooms; } private void OnDestory() { Debug.Log("OnDestory"); //AdamSync.SyncCreateRoom.createRoomRequset -= OnCreateRoom; - AdamSync.SyncCreateRoom.joinRoomRequset -= OnJoinRoom; + //AdamSync.SyncCreateRoom.joinRoomRequset -= OnJoinRoom; //AdamSync.SyncCreateRoom.getRoomsRequset -= OnGetRooms; } }