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.
This is part of the 2D Top Down Tank game tutorial series. Playlist • Top Down 2D Tank Game
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
Scripts and UnityPackages: https://github.com/SunnyValleyStudio/...
Full project: https://drive.google.com/drive/folder...
Would you like to learn how to make a 2d shooter in Unity?
https://courses.sunnyvalleystudio.com/
You can support me through Patreon:
/ sunnyvalleystudio
Assets used:
https://www.kenney.nl/assets/topdown-...
https://github.com/sparklinlabs/super...
Join the discord:
/ discord