public void EndMove() { if (Hand.Count > Health.Length) { Actions.ShowPlayerCards(); GlobalVeriables.GameState = EGameState.DropCards; } EndMoveBttn.gameObject.SetActive(false); HandBttn.gameObject.SetActive(false); ImageOfDesk.color = Color.white; StartCoroutine(PlayersMoveQueue.StartNextPlayer()); }
public void EndMove() { if (UsingCards.activeSelf) { foreach (Image card in UsingCards.GetComponentsInChildren <Image>()) { Destroy(card.gameObject); } } UsingCards.SetActive(false); ImageOfDesk.color = Color.white; endMove = true; StartCoroutine(PlayersMoveQueue.StartNextPlayer()); }