Saving data between levels in Unity 2D - Tank game tutorial P16

preview_player
Показать описание
In this Unity 2020 tutorial we will learn how to persist data between scenes. We will save the health of our player and the scene index using PlayerPrefs and create Main Menu scene where we can reload last player level.

00:00 Introduction
00:53 Preparing additional scenes
01:55 Creating Menu Scene
04:31 Save System script
14:01 Game Manager script
20:59 Adding a transition between levels
27:49 Testing
29:24 Support me maybe?

Resources

Would you like to learn how to make a 2d shooter in Unity?

You can support me through Patreon:

Assets used:

Join the discord:
Рекомендации по теме
Комментарии
Автор

Just completed the tutorial honestly thank you so much for uploading this dude incredibly helpful and informative!

plebbo
Автор

Thank you so much. I've learned a lot and the code in this video was clean and well organized.

Entikai
Автор

I finally have done it ) after so many months) thank you so much) it was very useful and inspiring)

Attosius
Автор

I find this tutorial so many month
Finally i found it ;) thks u

HytsuDBonz
Автор

Thanks sir, you saved my Unity project :)

brky
Автор

Hi, at 17:21 what if i have all script in player instead of in children? What should i do in order to get findobjectype in GameManager? Thanks!

Historyan
Автор

why at 7:52, by default is minus one? please explain for dummy such as I...

moncicis
Автор

But why It not go to level 3?
It only work for 2 level?

veslyju
Автор

thx help me allot but the cuntinue button work as start button

iop
Автор

There are 2 player in my scene can someone help me😅

veslyju
Автор

Hi, I have I little issue, when I press play for the first time is ok it s reset all the data, but if I go press play when I use the back to the menu and returns me to the main menu, the play does what continue do, any tips?

laurentiuvlad
Автор

Why doesn't in my SaveSystem object Ispector appear the UnityEvent "OnDataLoadedResult" if in the code is written down "UnityEvent<bool>", but it appears if I write down only "UnityEvent"?

Simo-rvto
Автор

your work is the best, but if i want to go back to level 1 and come out at the entry of level 2, how to do that sir

viarori