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

18 lines
368 B
C#
Raw Permalink Normal View History

2021-10-21 11:36:25 -06:00
using UnityEngine;
using UnityEngine.SceneManagement;
2022-10-07 14:54:24 -06:00
public class TitleButtonsControl : MonoBehaviour
2021-10-21 11:36:25 -06:00
{
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);
}
}