frostyfire

backbut

Aug 21st, 2019
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.SceneManagement;
  5.  
  6. public class BackButton : MonoBehaviour
  7. {
  8. // Start is called before the first frame update
  9. void Start()
  10. {
  11.  
  12. }
  13.  
  14. // Update is called once per frame
  15. void Update()
  16. {
  17.  
  18. }
  19. public void GoBack()
  20. {
  21. SceneManager.LoadScene(0);
  22. }
  23. public void ExitButton ()
  24. {
  25. Application.Quit();
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment