狼人杀游戏坑位处理

This commit is contained in:
chenguilong
2022-05-05 19:03:22 +08:00
parent f34b447068
commit b31741d8ca
10 changed files with 192 additions and 20 deletions

View File

@@ -178,7 +178,7 @@
}];
}
- (void)showLittleGameMiniView:(RoomType)type {
- (void)showLittleGameMiniView:(RoomType)type micCount:(NSInteger)micCount {
if (type == RoomType_MiniGame) {
if (!self.littleGameMiniView.superview) {
[self addSubview:self.littleGameMiniView];
@@ -188,6 +188,7 @@
make.height.mas_equalTo(23);
}];
}
self.littleGameMiniView.micCount = micCount;
} else {
if (self.littleGameMiniView.superview) {
[self.littleGameMiniView removeFromSuperview];
@@ -311,7 +312,7 @@
}
}
[self updateRoomTopic];
[self showLittleGameMiniView:roomInfo.type];
[self showLittleGameMiniView:roomInfo.type micCount:roomInfo.mgMicNum];
[self configLittleGameState];
}
@@ -376,7 +377,7 @@
}
[self updateRoomTopic];
[self showLittleGameMiniView:roomInfo.type];
[self showLittleGameMiniView:roomInfo.type micCount:roomInfo.mgMicNum];
[self configLittleGameState];
}