SHADE_Y3/Assets/Scripts/SC_MainMenu.cs

24 lines
391 B
C#
Raw Normal View History

2022-11-22 16:18:16 +08:00
using System;
using SHADE;
public class MainMenu : Script
2022-11-22 16:18:16 +08:00
{
protected override void awake()
{
}
protected override void update()
{
if (Input.GetKey(Input.KeyCode.Space))
{
2022-11-23 00:44:27 +08:00
Audio.PlaySFXOnce2D("event:/UI/mouse_down_element");
SceneManager.ChangeScene(86098106);
}
2022-11-23 00:44:27 +08:00
if (Input.GetKey(Input.KeyCode.Escape))
{
Application.Quit();
}
2022-11-22 16:18:16 +08:00
}
}