IEnumerator SkillDuration() { yield return(new WaitForSeconds(3f)); Logger.Log("Archer: Biu Biu Biu~~~~~~~!"); ATKSpeed.RemoveModifier(ATKSpeedModifierBySkill); attackRate = ATKSpeedValue; //3 attacks per second particleEffect.Stop(); arrowEffect.Stop(); HeroAnimator.SetBool("Skill", false); }
public override void ExSkill() { //duration time Logger.Log("Attack Speed Up"); if (HeroAnimator != null) { HeroAnimator.SetBool("Skill", true); } particleEffect.Play(); arrowEffect.Play(); ATKSpeed.AddModifier(ATKSpeedModifierBySkill); attackRate = ATKSpeedValue; StartCoroutine("SkillDuration"); }