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

        confusedLevel -= 1;
    }