How can I save this objects ?
Hello , I'm making a Puzzle Slider game , where I create (with create primitive c# code) quads , and then I apply a texture and a script called Bloques and the puzzle size is determined by a variable , for example if I use 3 in the variable the puzzle will be 3X3, etc. My problem is that I want to save the user progress of the game , that means the position of the quads.
Here's an image to understand it better: https://imgur.com/a/nOPeOZX
So I have a block that the user can't see because is not active in the scene , but I use that block to move the ones that are active.
Each Quad has a script called Bloques , each Quad has a coordinate , its a public variable called coordinada and its a Vector2Int type.
My problem is that I don't know how to save the state of the game (I mean it in a file), so if the user make's progress in the puzzle , close the game , and start that level it will be from scratch what I want to do is save the user progress.
How could I save the "status" of the scene as data? I've tried for a few days and I'm running crazy because I'm close to end the game.
Thank you in advance.
Your answer
Follow this Question
Related Questions
Save coins/currency? 2 Answers
Saving last runs score, only adds the previous score to it. 0 Answers
Need help to generate a random assortment of 4 buttons - C# 0 Answers
compare string to string array[] 2 Answers
How to reference data between scenes 1 Answer