PROBLEM ADDING LIFE TO CLIENT!
Options
Hi, I have a problem in practice I'm making collectible hp to add life to the player but when it collects it, add life not to the player but to the prefab in the folder so it doesn't add anything and when it dies and respawns that addition is applied only in the prefab
Thank you
This is the settings of the player in game
This is the settings in the PREFAB
0
Answers
-
I think I don't get the case properly, sorry.
Prefabs are not affected by gameplay usually. Maybe you in fact need something like a Scriptable Object, which does not exist in a scene but still is usable from the code / runtime. This is more of a Unity topic...
0