public void Update()
 {
     if (!string.IsNullOrEmpty(button) && DialogueManager.getInputButtonDown(button))
     {
         if (DialogueDebug.logInfo)
         {
             Debug.Log("Dialogue System: Sequencer: QTE(" + GetParameters() + ") triggered. Setting " + variableName + " to " + variableQTEValue);
         }
         if (variableType == FieldType.Boolean)
         {
             DialogueLua.SetVariable(variableName, Tools.StringToBool(variableQTEValue));
         }
         else
         {
             DialogueLua.SetVariable(variableName, DialogueLua.ValueAsString(variableType, variableQTEValue));
         }
         DialogueManager.instance.SendMessage(DialogueSystemMessages.OnConversationContinueAll, SendMessageOptions.DontRequireReceiver);
         Stop();
     }
     else if (DialogueTime.time >= stopTime)
     {
         Stop();
     }
 }
 public void Update()
 {
     if (!string.IsNullOrEmpty(button) && Input.GetButtonDown(button))
     {
         Lua.Run(string.Format("Variable[\"{0}\"] = {1}", new System.Object[] { variableName, DialogueLua.ValueAsString(variableType, variableQTEValue) }), DialogueDebug.LogInfo);
         DialogueManager.Instance.SendMessage("OnConversationContinue", SendMessageOptions.DontRequireReceiver);
         Stop();
     }
     else if (DialogueTime.time >= stopTime)
     {
         Stop();
     }
 }