Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using UnityEngine.SceneManagement;
- public class Menu : MonoBehaviour
- {
- private void Start()
- {
- PlayerPrefs.SetFloat("first",1f);
- Debug.Log(PlayerPrefs.GetFloat("first"));
- }
- public void StartGame()
- {
- SceneManager.LoadScene(1); //указываем номер сцены для загрузки
- }
- public void Back()
- {
- SceneManager.LoadScene(0);
- }
- public void Credits()
- {
- SceneManager.LoadScene(2);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement