Exemplo n.º 1
0
    private IEnumerator ApplySpeedBuff(TemplateAttack defaultAttack, TemplateAttack speedBuffAttack, float duration)
    {
        attackInfo = speedBuffAttack;
        yield return(new WaitForSeconds(duration));

        attackInfo = defaultAttack;
    }
Exemplo n.º 2
0
 public void ActivateSpeedBuff(TemplateAttack defaultAttack, TemplateAttack speedBuffAttack, float duration)
 {
     StartCoroutine(ApplySpeedBuff(defaultAttack, speedBuffAttack, duration));
 }