/// <summary>
 /// Starts the timer.
 /// </summary>
 /// <param name='timeout'>
 /// Timeout duration in seconds.
 /// </param>
 public override void StartTimer(float timeout)
 {
     if (timer != null)
     {
         if (timerEffect == null)
         {
             UnityDialogueUIControls.SetControlActive(timer, true);
             timerEffect = timer.GetComponent <TimerEffect>();
             UnityDialogueUIControls.SetControlActive(timer, false);
         }
         if (timerEffect != null)
         {
             timer.progress              = 1;
             timerEffect.duration        = timeout;
             timerEffect.TimeoutHandler -= OnTimeout;
             timerEffect.TimeoutHandler += OnTimeout;
             UnityDialogueUIControls.SetControlActive(timer, true);
         }
     }
 }
        /// <summary>
        /// Starts the timer.
        /// </summary>
        /// <param name='timeout'>
        /// Timeout duration in seconds.
        /// </param>
        public override void StartTimer(float timeout)
        {
            if (timer != null) {
                if (timerEffect == null) {
                    UnityDialogueUIControls.SetControlActive(timer, true);
                    timerEffect = timer.GetComponent<TimerEffect>();
                    UnityDialogueUIControls.SetControlActive(timer, false);
                }
                if (timerEffect != null) {
                    timer.progress = 1;
                    timerEffect.duration = timeout;
                    timerEffect.TimeoutHandler -= OnTimeout;
                    timerEffect.TimeoutHandler += OnTimeout;
                    UnityDialogueUIControls.SetControlActive(timer, true);
                }

            }
        }