16 lines
308 B
C#
16 lines
308 B
C#
using Godot;
|
|
|
|
namespace Pong.Scripts.Managers;
|
|
|
|
public partial class PongSceneManager : Node2D
|
|
{
|
|
private readonly StringName _reloadAction = new("scene_reload");
|
|
|
|
public override void _Process(double delta)
|
|
{
|
|
if (Input.IsActionJustPressed(_reloadAction))
|
|
{
|
|
GetTree().ReloadCurrentScene();
|
|
}
|
|
}
|
|
}
|