IEnumerator BeginReview() { generator.SetSlots(3); yield return(new WaitForSecondsRealtime(1f)); CreateMonster(); monster.GetComponent <Monster> ().spriteRenderer.sortingLayerName = "UI"; monster.GetComponent <Monster> ().spriteRenderer.sortingOrder = 6; isReviewRunning = true; EmotionCard.CheckEmotion = CheckEmotion; StartCoroutine(generator.CreateNextEmotions(0.5f, ContinueGame)); }
public void DrawCards(float waitPeriod) { drawingCardsCoroutine = StartCoroutine(generator.CreateNextEmotions(waitPeriod, ContinueGame)); }