I followed the setup tutorial for MLAPI and I got it to work with the connections. I can now join a game with multiple clients. I want to implement a score system.
Right now Ive made a singleton gameobject which holds a score value. At first I thought this score would be different for each client (which it isnt), so all clients are sharing the same score. Next I gave every player a score attribute. Now each player has its own score, but the issue is that whenever a player leaves the game, this score disappears.
I want each client to have a score which they can improve each game (like a money system). Where would I save this attribute to make this work.
PS: The player object gets destroyed after a game.