SHADE_Y3/Assets/Scripts/SC_MainMenu.cs

27 lines
500 B
C#

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