Forum begins after the advertisement:
-
Aka Former Patron
::If you put your player in prefab, then there is a bug “Type mismatch” with the image of Mana Storage remaining on none. The problem generates a bug when changing scenes.
NullReferenceException:
PlayerController.set_mana
PlayerController.Heal ()
PlayerController.update ()
You can try to unpack and repack the prefabs so that the mana is taken into account in the prefab, which no longer generates a bug when changing scenes, but this breaks the operation of the mana UI which always remains at max.
I haven’t found the solution yet.
Aka Former Patron
::Ok, sorry, I didn’t go far enough in the tutorial. Just make a singleton with the UI.
Sorry for the topic and thank you for your tutorials, you are bosses.
-> UIManagerScript
::No problem Aka, glad you managed to fix your issue.
Advertisement below: