Quantcast
Channel: Questions in topic: "build"
Viewing all articles
Browse latest Browse all 4084

Static class not working properly on game build

$
0
0
I'm making a rpg-like game and I'm using a static class to carry the payer's basic information between scenes. Before loading a new scene my GameManager class saves the inventory and the player's HP on the static class, then on the new scene on it's Start function it loads the inventory and the HP. If I try it on the editor everything works fine, but when I build the game and try it out only the inventory is saved between the scenes, wich is weird because they are both handled by the same function.

Viewing all articles
Browse latest Browse all 4084

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>