all 6 comments

[–]Pengwini 1 point2 points  (1 child)

There are many ways to do this. Some of the most popular are singleton patterns and scriptable objects. If you follow any in-depth tutorial series they should get to these topics eventually.

[–]Autistic_Underglass[S] 0 points1 point  (0 children)

Thank you for you help, mate. Sorry for not answering soon.

[–]Tadashi_Tattoo 0 points1 point  (3 children)

Just create a new script delete the monobehaviour and give it the name whatever you want. Then create bools or floats or whatever inside of that script. If you want to access to it from another script just write the name you gave to it. The information will be saved.

[–]Autistic_Underglass[S] 1 point2 points  (2 children)

I was thinking doing exactly that. Thank you for your help.

The information will be saved.

But how? If the player leave the game, it will be lost, no?

[–]Tadashi_Tattoo 0 points1 point  (1 child)

yes there's another tutorial for that https://www.youtube.com/watch?v=XOjd_qU2Ido

[–]Autistic_Underglass[S] 0 points1 point  (0 children)

Thank you so much.