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

17 lines
361 B
C#

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);
}
}