I would like to create Durability for my tools and weapons.
I would attach to a script to my Tool :
Tool “health” which is going to be decrease when hit anything what has Collider.
CurrentHealth = MaxHealth- hardness
Is that possbile somehow ?
Other script is attached to e.g. Tree
Where there is a float hardness which affects the tool "health
I use UFPS .