42 lines
898 B
C#
42 lines
898 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.GetKeyDown(Input.KeyCode.R))
|
|
{
|
|
Audio.PlaySFXOnce2D("event:/UI/mouse_down_element");
|
|
}
|
|
if (Input.GetKeyUp(Input.KeyCode.R))
|
|
{
|
|
Audio.PlaySFXOnce2D("event:/UI/success");
|
|
Audio.StopAllSounds();
|
|
SceneManager.ChangeScene(mainGameScene);
|
|
}
|
|
|
|
if (Input.GetKeyDown(Input.KeyCode.M))
|
|
{
|
|
Audio.PlaySFXOnce2D("event:/UI/mouse_down_element");
|
|
}
|
|
if (Input.GetKeyUp(Input.KeyCode.M))
|
|
{
|
|
Audio.PlaySFXOnce2D("event:/UI/success");
|
|
Audio.StopAllSounds();
|
|
SceneManager.ChangeScene(mainMainScene);
|
|
}
|
|
|
|
if (Input.GetKey(Input.KeyCode.Escape))
|
|
{
|
|
Application.Quit();
|
|
}
|
|
}
|
|
}
|