public void OnClick() { if (canClick) { ChangeTurnManager.EndPhase(); } else { DialogueUI.ShowDialogue("You cannot <color=yellow>end phase</color> if isn't your turn or if isn't <color=yellow> <b>Main Phase</b></color>"); } }
public IEnumerator EndTurn() { yield return(new WaitForSeconds(timeToEndPhase)); ChangeTurnManager.EndPhase(); }