public async Task ShowColorWheelInClient(SpecialCardActions effects) { PlayerObject player = game.Players.FirstOrDefault(n => n.id == game.CurrentPlayer); await clientHubContext.Clients.Client(player.connid).displayColorWheel(effects); }
public async Task UpdateColorInHost(PlayerObject player, string color, SpecialCardActions effects) { await hostHubContext.Clients.Client(GameConnectionId).setPickedColor(player, color, effects); }