예제 #1
0
 /// <summary>
 /// Logs warnings if any critical controls are unassigned.
 /// </summary>
 private void FindControls()
 {
     UITools.RequireEventSystem();
     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;
 }
		/// <summary>
		/// Logs warnings if any critical controls are unassigned.
		/// </summary>
		private void FindControls() {
			UITools.RequireEventSystem();
			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;
		}