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