private void OnEnterRoom(LobbyRoomItemFunction obj) { if (enterRoomAction != null) { enterRoomAction(obj); } }
private void OnEnterRoom(LobbyRoomItemFunction obj) { //TODO Debug.Log("OnEnterRoom"); PhotonNetwork.LeaveLobby(); roomInfo = (RoomInfo)obj.data; }
protected override void ItemAddListion(UGUIItemFunction func) { LobbyRoomItemFunction itemFunc = func as LobbyRoomItemFunction; itemFunc.enterRoomAction = OnEnterRoom; }