public void onPileClick() { if (continueUI) { return; } CardController controller = Pile.instance.pile[0]; if (!ifAlreadyPulled) { if (controller.CanBePlayed()) { ifAlreadyPulled = true; foreach (CardView view in GameManager.CurrentPlayer.hand) { view.IsDraggable = false; } Pile.PullCard(); } else { EndTurn(); Pile.PullCard(); } } }
public bool CanBePlayed() { return(controller.CanBePlayed()); }