public void Restart()
        {
            OnRestart?.Invoke();
            Player.Instance.SetPosition(playerInitPosition);
            toolsCollected = 0;
            gameTime       = TimeToFinish.ToFloat();
            stGameTime     = new StandardTime();
            stGameTime.ConvertFrom(gameTime);

            ResumeGame();
            UpdateGameUI();
        }
 private void UpdateGameUI()
 {
     stGameTime.ConvertFrom(gameTime);
     UI.SetTime(stGameTime);
     UI.SetCollectibles(toolsCollected);
 }