I've built a function in PlayerManager script to determine the total defence value of equipped items.
It iterated the items, and adds up the values.
When needed, other scripts can call this function.
It seems to work, but I've no idea if it is a good way of doing this.
Notices by Armoured Wizard (armouredwizard@dice.camp)
-
Embed this notice
Armoured Wizard (armouredwizard@dice.camp)'s status on Thursday, 20-Jun-2024 21:03:03 JST Armoured Wizard