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); }
public void Consume(Character user) { if (onConsume != null) { user.StartCoroutine(onConsume.OnTriggerEffects(user, null)); } }
public void Stop() { if (startLoopParticle != null) { GameObject.Destroy(startLoopParticle); } if (period != null) { target.StopCoroutine(period); } target.StartCoroutine(buff.OnEnd(this)); target.RemoveBuff(this); }