예제 #1
0
 public override IEnumerator OnTriggerEffects(Character caster, Character target)
 {
     foreach (NovaDamageProfile nova in damages)
     {
         if (nova.particleBurst != null)
         {
             caster.StartCoroutine(DoNovaParticle(caster, nova));
         }
         caster.StartCoroutine(DoNovaDamage(caster, nova));
     }
     yield return(null);
 }
예제 #2
0
 public void Consume(Character user)
 {
     if (onConsume != null)
     {
         user.StartCoroutine(onConsume.OnTriggerEffects(user, null));
     }
 }
예제 #3
0
        public void Stop()
        {
            if (startLoopParticle != null)
            {
                GameObject.Destroy(startLoopParticle);
            }
            if (period != null)
            {
                target.StopCoroutine(period);
            }
            target.StartCoroutine(buff.OnEnd(this));

            target.RemoveBuff(this);
        }