public bool MoveCard(CardModel cardModel, int handSlotIndex, int tableSlotIndex) { Debug.Log(string.Format("[MainController][MoveCard]Hand slot index = {0}, table slot index = {1}", handSlotIndex, tableSlotIndex)); if (handSlotIndex > _handSlots.Count) { return(false); } if (tableSlotIndex > _tableSlots.Count) { if (tableSlotIndex <= _tableSlots.Capacity) { _tableSlots.Add(cardModel); } else { return(false); } } _handSlots.RemoveAt(handSlotIndex); return(true); }