Maramarcos / Group10_Zelda_Game

CEN4090L Project of a Zelda-like game
1 stars 0 forks source link

PlayerState #9

Open Rjb99 opened 2 years ago

Rjb99 commented 2 years ago

This will be needed for implementing systems such as money, items.

Rjb99 commented 2 years ago

7

6

5

3

2

will all need some common uniting system to store data

ParkerJStone commented 2 years ago

My suggestion is to create a struct or class that has the single purpose of storing all the data that is saved and loaded. We then mark it as serializable and save/load using the JsonSerializer from unity. Keeping it separate from the main player class makes this easier to know and manage what is saved and what is not.