Fixed level restart

This commit is contained in:
Rendo 2025-07-18 14:15:00 +05:00
commit e8df5f1183
3 changed files with 13 additions and 5 deletions

View file

@ -1,4 +1,5 @@
using Godot;
using Newlon;
using System;
public partial class PauseMenu : Control
@ -21,7 +22,7 @@ public partial class PauseMenu : Control
public void Restart()
{
GetTree().Paused = false;
GetTree().ReloadCurrentScene();
LevelController.Instance.RestartLevel();
currently_paused = false;
}
public void Exit()