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

        confusedLevel -= 1;
    }