NullReferenceException: Object reference not set to an instance of an object
Player.OnTriggerEnter2D (UnityEngine.Collider2D collision) (at Assets/Scripts/Player.cs:34)
I can’t recall exactly, but you may need to get the parent before using GetComponent here (?) so it would be
collision.gameObject.GetComponent().Damage();
Also, this is optional, but I wouldn’t name it “collision”. There is a Collision object used in OnCollisionEnter2D which returns different information than the OnTriggerEnter2D method does. Can be confusing. Usually with a Trigger the variable name is collider, because that’s what it returns.