diff options
Diffstat (limited to 'Scripts/Credits.cs')
| -rw-r--r-- | Scripts/Credits.cs | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/Scripts/Credits.cs b/Scripts/Credits.cs index 5432d02..11b7e08 100644 --- a/Scripts/Credits.cs +++ b/Scripts/Credits.cs @@ -1,16 +1,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"); - } - } - } -} +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"); + } +}
\ No newline at end of file |
