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

18 lines
368 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();
2021-11-01 23:29:54 -06:00
SceneManager.LoadScene("introCutscene");
2021-10-21 11:36:25 -06:00
}
public void exitButtonClick()
{
GetComponent<AudioSource>().Play();
Application.Quit(0);
}
}