Fixed level restart
This commit is contained in:
parent
1d578fcba4
commit
e8df5f1183
3 changed files with 13 additions and 5 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue