SHADE_Y3/Assets/Scripts/SC_MainMenu.cs

24 lines
391 B
C#

using System;
using SHADE;
public class MainMenu : Script
{
protected override void awake()
{
}
protected override void update()
{
if (Input.GetKey(Input.KeyCode.Space))
{
Audio.PlaySFXOnce2D("event:/UI/mouse_down_element");
SceneManager.ChangeScene(86098106);
}
if (Input.GetKey(Input.KeyCode.Escape))
{
Application.Quit();
}
}
}