2022-11-22 16:18:16 +08:00
|
|
|
|
using System;
|
|
|
|
|
using SHADE;
|
|
|
|
|
|
2022-11-22 17:28:48 +08:00
|
|
|
|
public class MainMenu : Script
|
2022-11-22 16:18:16 +08:00
|
|
|
|
{
|
|
|
|
|
protected override void awake()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
protected override void update()
|
|
|
|
|
{
|
2022-11-22 17:28:48 +08:00
|
|
|
|
if (Input.GetKey(Input.KeyCode.Space))
|
|
|
|
|
{
|
2022-11-23 00:44:27 +08:00
|
|
|
|
Audio.PlaySFXOnce2D("event:/UI/mouse_down_element");
|
2022-11-22 17:28:48 +08:00
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|