Coin pickup counter with UE5 and C++

you can check your variable in your Widget blueprint. after you change it, just cast it from your character before in the Widget blueprint