Exemplo n.º 1
0
    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");
    }
Exemplo n.º 2
0
 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");
 }