public void SetSpeed(TimerSpeed newSpeed)
        {
            switch (newSpeed)
            {
            case TimerSpeed.Normal:
                speed = 1.0f;
                break;

            case TimerSpeed.Fast:
                speed = 2.0f;
                break;

            case TimerSpeed.Fastest:
                speed = 3.0f;
                break;

            default:
                speed = 1.0f;
                break;
            }
            OnTimerSpeedChanged?.Invoke();
        }
 public void PauseTimer()
 {
     isPaused = true;
     OnTimerSpeedChanged?.Invoke();
 }
 public void StartTimer()
 {
     isPaused = false;
     OnTimerSpeedChanged?.Invoke();
 }