using UnityEngine; public class SkillParticleEffect : MonoBehaviour { [SerializeField] IVSkill skill; private void OnParticleCollision(GameObject other) { if(other.TryGetComponent(out CreatureBase creature)) { skill?.SendDamage(creature); } } }