Hello! I have one question. It is probably a simple one, but I am trying to clearly understand what’s going on.
void OnTriggerEnter2D(Collider2D col)
{
Destroy(col.gameObject);
}
What I understand is that the gameObject here is the “Shredder”, to which the script is attached. Then how destroying this is removing the instances of projectiles from the scene?