public void AttachParticle(Transform target, ParticleTypes type) { if (GetPrefab(type)) { AttachEffect particle = Instantiate(GetPrefab(type), null).GetComponent <AttachEffect>(); if (particle && target) { particle.target = target; } } }
static void OnAttachChargingEffect(string effectName, string iD, string taleSpireId, float secondsDelayStart, float enlargeTime, float lifeTime, float shrinkTime, float rotationDegrees) { AttachEffect?.Invoke(null, new SpellEffectEventArgs(effectName, iD, taleSpireId, EffectLocation.CreatureBase, lifeTime, secondsDelayStart, enlargeTime, shrinkTime, rotationDegrees)); }