summaryrefslogtreecommitdiff
path: root/Scripts/Credits.cs
diff options
context:
space:
mode:
authorSophia Pearson <codergal89@gmail.com>2022-11-26 10:08:44 +0100
committerSophia Pearson <codergal89@gmail.com>2022-11-26 10:08:44 +0100
commitd7eefa488135c477f39ea0953b032c7dcdad8bc7 (patch)
treed9725b73b342ff3d9df4d800616dd010b48c7222 /Scripts/Credits.cs
parent8e8a58bac339aa06e860b977670f16c8b4eb30a8 (diff)
downloadtexty-d7eefa488135c477f39ea0953b032c7dcdad8bc7.tar.xz
texty-d7eefa488135c477f39ea0953b032c7dcdad8bc7.zip
scripts: perform code cleanup actions
Diffstat (limited to 'Scripts/Credits.cs')
-rw-r--r--Scripts/Credits.cs22
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