/// <summary>
 /// Starts the timer.
 /// </summary>
 /// <param name='timeout'>
 /// Timeout duration in seconds.
 /// </param>
 public override void StartTimer(float timeout)
 {
     if (timer != null)
     {
         if (nguiTimer == null)
         {
             NGUIDialogueUIControls.SetControlActive(timer.gameObject, true);
             nguiTimer = timer.GetComponent <NGUITimer>();
             if (nguiTimer == null)
             {
                 nguiTimer = timer.gameObject.AddComponent <NGUITimer>();
             }
             NGUIDialogueUIControls.SetControlActive(timer.gameObject, false);
         }
         if (nguiTimer != null)
         {
             NGUIDialogueUIControls.SetControlActive(timer.gameObject, true);
             nguiTimer.StartCountdown(timeout, OnTimeout);
         }
         else
         {
             if (DialogueDebug.LogWarnings)
             {
                 Debug.LogWarning(string.Format("{0}: No NGUITimer component found on timer", DialogueDebug.Prefix));
             }
         }
     }
 }
		/// <summary>
		/// Starts the timer.
		/// </summary>
		/// <param name='timeout'>
		/// Timeout duration in seconds.
		/// </param>
		public override void StartTimer(float timeout) {
			if (timer != null) {
				if (nguiTimer == null) {
					NGUIDialogueUIControls.SetControlActive(timer.gameObject, true);
					nguiTimer = timer.GetComponent<NGUITimer>();
					if (nguiTimer == null) nguiTimer = timer.gameObject.AddComponent<NGUITimer>();
					NGUIDialogueUIControls.SetControlActive(timer.gameObject, false);
				}
				if (nguiTimer != null) {
					NGUIDialogueUIControls.SetControlActive(timer.gameObject, true);
					nguiTimer.StartCountdown(timeout, OnTimeout);
				} else {
					if (DialogueDebug.LogWarnings) Debug.LogWarning(string.Format("{0}: No NGUITimer component found on timer", DialogueDebug.Prefix));
				}
			}
		}