Small 👍
This commit is contained in:
parent
dbb1881da8
commit
804122a3bd
5 changed files with 25 additions and 31 deletions
|
|
@ -5,7 +5,6 @@ namespace Newlon.Components.GUI;
|
|||
|
||||
public partial class LevelRunButton : Button
|
||||
{
|
||||
[Export] private AnimationPlayer _player;
|
||||
public override void _Pressed()
|
||||
{
|
||||
RuntimeLevelData.Instance.SetLevelState(RuntimeLevelData.LevelStates.Pregame);
|
||||
|
|
|
|||
|
|
@ -41,8 +41,6 @@ public partial class LevelController : Node
|
|||
}
|
||||
public void RestartLevel()
|
||||
{
|
||||
if (_isLevelRunning == false)
|
||||
return;
|
||||
var resource = RuntimeLevelData.LevelResource;
|
||||
GetTree().ReloadCurrentScene();
|
||||
RuntimeLevelData.LevelResource = resource;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue