void OnCollisionEnter2D(Collision2D collision) { HealthManager hit = collision.gameObject.GetComponent <HealthManager>(); hit?.ApplyHealthEffect(-damage); DestroyProjectile(); }