ShanxiKnowledgeBase/SXElectricityInformationAcq.../Assets/Scripts/QuitSceneComponent.cs

17 lines
355 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class QuitSceneComponent : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
this.GetComponent<Button>().onClick.AddListener(delegate
{
Application.Quit();
});
}
}