public CountdownState(BattleStateHandler battleStateHandler)
        {
            battleStateHandler.ServerCountdownTime = countdownInitial;

            nextSync = Time.time + syncIntervalSeconds;
            battleStateHandler.SyncCountdownTime();

            firstUpdate = true;
        }
        public void Update(BattleStateHandler battleStateHandler)
        {
            if (Network.isServer)
            {
                if (Time.time > nextSync)
                {
                    nextSync = Time.time + syncIntervalSeconds;
                    battleStateHandler.SyncCountdownTime();
                }
            }

            if (firstUpdate)
            {
                firstUpdate = false;
                battleStateHandler.timerAnimator.Play("TimerIn");
            }

            battleStateHandler.ServerCountdownTime -= Time.deltaTime;

            battleStateHandler.timerDisplay.fillAmount = 1f - (battleStateHandler.ServerCountdownTime / CountdownState.countdownInitial);
        }