Возможное исправления подсчета времени

This commit is contained in:
Евгений Титаренко 2023-08-19 19:28:47 +03:00
parent b5439da5a0
commit 591dd26372

View file

@ -39,6 +39,7 @@ public partial class GameManager : Node
GD.Print("Restart stats");
IsPlaying = true;
_gameInfo = new GameInfo(GetPathTo(FirstZone.PlayerSpawnPoint));
_gameInfo.GameStart = Time.GetTicksMsec();
}
StartGame();
@ -46,7 +47,6 @@ public partial class GameManager : Node
public void StartGame()
{
_gameInfo.GameStart = Time.GetTicksMsec();
Player.GlobalPosition = GetNode<Node2D>(_gameInfo.Checkpoint).GlobalPosition;
}