Small 👍

This commit is contained in:
Rendo 2025-07-20 00:02:31 +05:00
commit 804122a3bd
5 changed files with 25 additions and 31 deletions

View file

@ -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);

View file

@ -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;