hieki-chan / Supermarket-Simulator-Prototype

Supermarket/Store simulator made in Unity
13 stars 2 forks source link

Save And Load Data #2

Open taimurafridi1201 opened 1 week ago

taimurafridi1201 commented 1 week ago

Hey can you please add save and load feature? like when shelf has some products and we quit and reopen the products are placed like currently everything is just one time when you quit application and then reopen everything restart. Like i tried myself but i don't know where this would be done as there are so many scripts.

hieki-chan commented 1 week ago

I hear you, but sorry I'm currently busy with school. I will implement it if I can find the time 😔

taimurafridi1201 commented 1 week ago

I hear you, but sorry I'm currently busy with school. I will implement it if I can find the time 😔

hey bro no problem if you haven't a time to implement it, just give me a rough idea there which scripts will help out to add save and load feature.

hieki-chan commented 1 week ago

I hear you, but sorry I'm currently busy with school. I will implement it if I can find the time 😔

hey bro no problem if you haven't a time to implement it, just give me a rough idea there which scripts will help out to add save and load feature.

I think all the products should have an ID, and we can save the IDs in a JSON file for each furniture that holds those products. Then, we can load them when we open the game. You can find SaveLoad script in folder SaveLoad

taimurafridi1201 commented 1 week ago

Yes , i have try this but there might be some issue or may be i'm missing something. Try it once if you have a time.