|
using System;
|
|
using SHADE;
|
|
|
|
public class QuitButton : Script
|
|
{
|
|
protected override void awake()
|
|
{
|
|
UIElement ui = GetComponent<UIElement>();
|
|
ui.OnClick.RegisterAction(() =>
|
|
{
|
|
Audio.StopAllSounds();
|
|
Application.Quit();
|
|
});
|
|
|
|
|
|
}
|
|
protected override void update()
|
|
{
|
|
|
|
}
|
|
}
|