IEnumerator SkillDuration() { yield return(new WaitForSeconds(7f)); PDEF.RemoveModifier(PDEFModifierBySkill); MDEF.RemoveModifier(MDEFModifierBySkill); Dodge.RemoveModifier(DodgeModifierBySkill); Block.RemoveModifier(BlockModifierBySkill); particleEffect.Stop(); Debug.Log("DEF back to normal"); }
public override void ExSkill() { //duration time Debug.Log("DEF up"); particleEffect.Play(); PDEF.AddModifier(PDEFModifierBySkill); MDEF.AddModifier(MDEFModifierBySkill); Dodge.AddModifier(DodgeModifierBySkill); Block.AddModifier(BlockModifierBySkill); StartCoroutine("SkillDuration"); }