public void OnTriggerEnter2D(Collider2D other) { BaseEnemy enemy = other.GetComponent <BaseEnemy>(); ParticleSystem _particle = other.GetComponent <ParticleSystem>(); if (enemy != null) { if (!other.transform.Find("CONTEGO_BUFF") && other.name != "CORRUMPO_SHIELD") { Debug.Log("Partícula Spawnada em: " + other.gameObject.name); GameObject _buffVFX = TrashMan.spawn("CONTEGO_BUFF", enemy.transform.position, enemy.transform.rotation); _buffVFX.transform.parent = enemy.transform; _buffVFX.transform.localPosition = new Vector3(0, 0, 0); } enemy.ContegoHeal(20); } }