Move Script folder to Scripts

This commit is contained in:
2025-05-30 11:45:47 -07:00
parent 99fa12ebf6
commit 5f7fb0dee3
5 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
public class ButtonToScene : MonoBehaviour
{
public string sceneName;
void Awake()
{
gameObject.GetComponent<Button>().onClick.AddListener(() => {
SceneManager.LoadScene(sceneName);
});
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 1a45465fc8803364d968dc6bec70fca8

View File

@@ -0,0 +1,15 @@
using UnityEngine;
using UnityEngine.UI;
public class MenuScript : MonoBehaviour
{
public Button exitButton;
void Awake()
{
exitButton.onClick.AddListener(() =>
{
Application.Quit();
});
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: dc00c72751f7f964cb9a814113093672