private void OnRoomInfoChanged(TransferData data) { RoomEntity room = data.GetValue <RoomEntity>("Room"); if (room == null) { return; } ShowColor(room.Status == RoomEntity.RoomStatus.LackColor && room.PlayerSeat.LackColor == 0); }
/// <summary> /// 房间信息变更 /// </summary> /// <param name="obj"></param> private void OnRoomInfoChanged(TransferData data) { RoomEntity room = data.GetValue <RoomEntity>("Room"); if (room == null) { return; } m_ButtonAuto.SafeSetActive(!(room.Status == RoomEntity.RoomStatus.Ready || room.Status == RoomEntity.RoomStatus.Replay)); SetWaitLiangXi(room.Status == RoomEntity.RoomStatus.Show || room.Status == RoomEntity.RoomStatus.Jiao); SetSwapTip(room.Status == RoomEntity.RoomStatus.Swap); SetLackColorTip(room.Status == RoomEntity.RoomStatus.LackColor); }