18 lines
361 B
C#
18 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);
|
||
|
}
|
||
|
}
|