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

        confusedLevel -= 1;
    }