Setting new damage doesn't work

I might be wrong, but I think you’re casting to the wrong thing here. Right now the (I assume powerup?) is using casting to check if the thing that it’s overlapping with is a projectile and not a player character ( I assume that you want to pick it up with the character and not by shooting?). This is why it stops at casting.

Also I don’t think that you can put the damage value inside the projectile itself because the powerup will then only power up the damage of existing projectiles. The ones you shoot afterwards will have the default value again.

Hope this helps!