public void OnCheck() { if ((pSelectedCard == null && GetPlayerCards().Length > 1) || (pSelectedCard != null && pSelectedCard.pHasChecked)) { Debug.Log("Please select a card"); //_WarningText.gameObject.SetActive(true); showWarning.Dispatch(true); return; } mCheckCount++; if (pSelectedCard == null) { pSelectedCard = GetMaxPriorityCard(GetPlayerCards()); } pSelectedCard.pHasChecked = true; if (GetLeastHigherPriorityAICard(pSelectedCard) != null) { mAIScore++; Debug.Log("Computer Won"); } else { mPlayerScore++; Debug.Log("Pllayer Won"); } UpdateScores(); if (mCheckCount >= 3 || pCurrentGameMode._IsSingleStep) { OnSubmitScores(); } pSelectedCard.ResetPosition(); pSelectedCard = null; }