gimm-platformer-project/Assets/Scripts/titleButtonsControl.cs

18 lines
361 B
C#
Raw Normal View History

2021-10-21 11:36:25 -06:00
using UnityEngine;
using UnityEngine.SceneManagement;
public class titleButtonsControl : MonoBehaviour
{
public void startButtonClick()
{
GetComponent<AudioSource>().Play();
SceneManager.LoadScene("level1");
}
public void exitButtonClick()
{
GetComponent<AudioSource>().Play();
Application.Quit(0);
}
}