private void HandleGarbLandlordEndBrd(object obj) { view.mainPlayerView.ButtonsSwitchPlayCard(); var dto = obj as GrabLandlordEndDto; int clientLandlordIndex = Models.gameModel.roomModel.ServerPlaceIndexToClient(dto.landlordIndex); view.under3Cards.SetUnderCards(dto.UnderCards); view.under3Cards.CardsFaceUp(); if (clientLandlordIndex == 0) { CardHand mainPlayerHand = Models.gameModel.playModel.MainPlayerHand; mainPlayerHand.AddCards(dto.UnderCards); mainPlayerHand.Sort(); view.mainPlayerView.ClearCards(); view.mainPlayerView.AddCards(mainPlayerHand.GetCards()); } else { UIPlayerBase playerView = view.GetPlayerUiByIndex(clientLandlordIndex); playerView.AddFaceDownCards(dto.UnderCards.Length); } //view.under3Cards.Show(); }