D
D
d1msk1y2021-08-12 23:05:41
Unity
d1msk1y, 2021-08-12 23:05:41

How to make a weapon upgrade system?

In my game, the main mechanics is shooting from weapons. In the future, there will be different weapons in the game, and I took care of this in advance and created a Scriptable Object for future weapons. Each weapon has its own Scriptable Object in which the shooting parameters are indicated : rounds, rate of fire and bullet speed .
The problem is, in the main menu, the player can upgrade each of the parameters for each weapon, but I don’t understand how to properly edit the Scriptable Object for each weapon from another scene, and plus, you need to remember all this

If it’s not difficult, explain how to do this everything is correct, because I have thoughts, but the code will be as ugly as possible
and it will be easy to get confused

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GavriKos, 2021-08-13
@GavriKos

No need to edit SO. In fact, you should have a config for EVERY upgrade of EVERY parameter, and separately - the LEVEL of each parameter.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question