예제 #1
0
 /// <summary>
 /// Logs warnings if any critical controls are unassigned.
 /// </summary>
 private void FindControls()
 {
     if (addEventSystemIfNeeded)
     {
         UITools.RequireEventSystem();
     }
     m_qteControls = new UnityUIQTEControls(qteIndicators);
     if (DialogueDebug.logErrors)
     {
         if (DialogueDebug.logWarnings)
         {
             if (dialogue.npcSubtitle.line == null)
             {
                 Debug.LogWarning(string.Format("{0}: UnityUIDialogueUI NPC Subtitle Line needs to be assigned.", DialogueDebug.Prefix));
             }
             if (dialogue.pcSubtitle.line == null)
             {
                 Debug.LogWarning(string.Format("{0}: UnityUIDialogueUI PC Subtitle Line needs to be assigned.", DialogueDebug.Prefix));
             }
             if (dialogue.responseMenu.buttons.Length == 0 && dialogue.responseMenu.buttonTemplate == null)
             {
                 Debug.LogWarning(string.Format("{0}: UnityUIDialogueUI Response buttons need to be assigned.", DialogueDebug.Prefix));
             }
             if (alert.line == null)
             {
                 Debug.LogWarning(string.Format("{0}: UnityUIDialogueUI Alert Line needs to be assigned.", DialogueDebug.Prefix));
             }
         }
     }
     originalNPCSubtitle  = dialogue.npcSubtitle;
     originalPCSubtitle   = dialogue.pcSubtitle;
     originalResponseMenu = dialogue.responseMenu;
 }
예제 #2
0
 /// <summary>
 /// Logs warnings if any critical controls are unassigned.
 /// </summary>
 private void FindControls()
 {
     qteControls = new UnityUIQTEControls(qteIndicators);
     if (DialogueDebug.LogErrors)
     {
         if (DialogueDebug.LogWarnings)
         {
             if (dialogue.npcSubtitle.line == null)
             {
                 Debug.LogWarning(string.Format("{0}: UnityUIDialogueUI NPC Subtitle Line needs to be assigned.", DialogueDebug.Prefix));
             }
             if (dialogue.pcSubtitle.line == null)
             {
                 Debug.LogWarning(string.Format("{0}: UnityUIDialogueUI PC Subtitle Line needs to be assigned.", DialogueDebug.Prefix));
             }
             if (dialogue.responseMenu.buttons.Length == 0 && dialogue.responseMenu.buttonTemplate == null)
             {
                 Debug.LogWarning(string.Format("{0}: UnityUIDialogueUI Response buttons need to be assigned.", DialogueDebug.Prefix));
             }
             if (alert.line == null)
             {
                 Debug.LogWarning(string.Format("{0}: UnityUIDialogueUI Alert Line needs to be assigned.", DialogueDebug.Prefix));
             }
         }
     }
 }
예제 #3
0
		/// <summary>
		/// Logs warnings if any critical controls are unassigned.
		/// </summary>
		private void FindControls() {
			qteControls = new UnityUIQTEControls(qteIndicators);
			if (DialogueDebug.LogErrors) {
				if (DialogueDebug.LogWarnings) {
					if (dialogue.npcSubtitle.line == null) Debug.LogWarning(string.Format("{0}: UnityUIDialogueUI NPC Subtitle Line needs to be assigned.", DialogueDebug.Prefix));
					if (dialogue.pcSubtitle.line == null) Debug.LogWarning(string.Format("{0}: UnityUIDialogueUI PC Subtitle Line needs to be assigned.", DialogueDebug.Prefix));
					if (dialogue.responseMenu.buttons.Length == 0 && dialogue.responseMenu.buttonTemplate == null) Debug.LogWarning(string.Format("{0}: UnityUIDialogueUI Response buttons need to be assigned.", DialogueDebug.Prefix));
					if (alert.line == null) Debug.LogWarning(string.Format("{0}: UnityUIDialogueUI Alert Line needs to be assigned.", DialogueDebug.Prefix));
				}
			}
		}