34 lines
688 B
C#
34 lines
688 B
C#
using System;
|
|
using SHADE;
|
|
|
|
public class EndScene : Script
|
|
{
|
|
public uint mainGameScene = 86098106;
|
|
public uint mainMainScene = 97158628;
|
|
|
|
protected override void awake()
|
|
{
|
|
}
|
|
protected override void update()
|
|
{
|
|
if (Input.GetKey(Input.KeyCode.R))
|
|
{
|
|
Audio.PlaySFXOnce2D("event:/UI/mouse_down_element");
|
|
Audio.StopAllSounds();
|
|
SceneManager.ChangeScene(mainGameScene);
|
|
}
|
|
|
|
if (Input.GetKey(Input.KeyCode.M))
|
|
{
|
|
Audio.PlaySFXOnce2D("event:/UI/mouse_down_element");
|
|
Audio.StopAllSounds();
|
|
SceneManager.ChangeScene(mainMainScene);
|
|
}
|
|
|
|
if (Input.GetKey(Input.KeyCode.Escape))
|
|
{
|
|
Application.Quit();
|
|
}
|
|
}
|
|
}
|