- Home /
Question by
kot2202 · Jul 01, 2020 at 09:05 AM ·
optimizationweapon systemweaponchangingequipment
Weapon database/dictionary design
So I want the player to set his primary-weapon1 and secondary-weapon2 loadout via saving playerprefs in menu. For now each weapon has it's own id and you can load both primary and secondary id with playerprefs. Now on different scene I want to give the player the 2 weapons he picked in loadout. So, do I just create gameobject with serializefield gameobject array of every possible weapon there will be in game in level scene? (30~+ weapons) or is there better way to do that? I assume holding such big array isn't good idea (for mobile especially optimization vise). The game may support multiple players in future.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613002201im_/https://answers.unity.com/themes/thub/images/avi.jpg)