Not using strings in Saving Weapon of choice

Hi, Sam is proposing to use strings to make serializing weapons possible
obraz

I think better way is to load current weapon from Resources folder in EquipWeapon method like that

And then when method is called use the gameObject.name as a parameter
obraz

Then we don’t need Serialize Field for string defaultWeaponName and we use defaultWeapon Weapon refernce like before.

Thoughts?

Privacy & Terms