summaryrefslogtreecommitdiff
path: root/Scripts/Credits.cs
blob: 11b7e08061e65abd6b57a1ecd8a2acc56dc4a3a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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");
    }
}