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

17 lines
368 B
C#

using UnityEngine;
using UnityEngine.SceneManagement;
public class TitleButtonsControl : MonoBehaviour
{
public void startButtonClick()
{
GetComponent<AudioSource>().Play();
SceneManager.LoadScene("introCutscene");
}
public void exitButtonClick()
{
GetComponent<AudioSource>().Play();
Application.Quit(0);
}
}