public void Consume(ConfusionPill pill) { confusedLevel += 1; StartCoroutine(ReduceEffect(pill)); }
private IEnumerator ReduceEffect(ConfusionPill pill) { yield return(new WaitForSeconds(pill.effectTime)); confusedLevel -= 1; }