pause now is not mandatory

This commit is contained in:
Rendo 2025-07-17 20:57:18 +05:00
commit 5d4ae478dc
7 changed files with 31 additions and 8 deletions

View file

@ -0,0 +1,17 @@
using Godot;
using Newlon.Components.Level;
public partial class GameTimer : Timer
{
public void OnLevelStateChanged(RuntimeLevelData.LevelStates state)
{
if (state == RuntimeLevelData.LevelStates.Game)
{
Start();
}
else
{
Stop();
}
}
}