blob: 5432d026a27da8bd2145bd11d956bd461bc6f217 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
using Godot;
namespace Texty.Scripts
{
public partial class Credits : Node
{
public override void _UnhandledKeyInput(InputEvent @event)
{
if (@event is InputEventKey { Keycode: Key.Escape })
{
GetTree().ChangeSceneToFile("res://Scenes/Menus/MainMenu.tscn");
}
}
}
}
|