private void OnCollisionEnter2D(Collision2D collision) { Being being = collision.gameObject.GetComponent <Being>(); if (being == null) { //maybe want to check for spell Destroy(gameObject); return; } being.Damage(damage); Destroy(gameObject); }