17 lines
301 B
C#
17 lines
301 B
C#
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();
|
|
}
|
|
}
|
|
}
|