startbutton.cs 323 B

1234567891011121314151617
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.SceneManagement;
  5. public class startbutton : MonoBehaviour {
  6. public void PressQuit()
  7. {
  8. Application.Quit();
  9. }
  10. public void GameStart()
  11. {
  12. GameManager.instance.SwitchScene("main");
  13. }
  14. }