From d7eefa488135c477f39ea0953b032c7dcdad8bc7 Mon Sep 17 00:00:00 2001 From: Sophia Pearson Date: Sat, 26 Nov 2022 10:08:44 +0100 Subject: scripts: perform code cleanup actions --- Scripts/Credits.cs | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) (limited to 'Scripts/Credits.cs') 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 -- cgit v1.2.3