Unverified Commit 505584b9 authored by Gerard Gascón's avatar Gerard Gascón Committed by GitHub
Browse files

Bugfix

Small bug prevented text from showing without sound
parent 9f9dedba
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -28,11 +28,10 @@ namespace SimpleTools.DialogueSystem {
		}

		public bool Dialogue(Dialogue dialogue) {
			return Dialogue(dialogue, "");
			return Dialogue(dialogue, string.Empty);
		}

		public bool Dialogue(Dialogue dialogue, params string[] sounds) {
			if (sounds != null)
			dialogueVertexAnimator.SetAudioSourceGroup(sounds);

			if (!talking) {
+1 −1
Original line number Diff line number Diff line
@@ -216,7 +216,7 @@ namespace SimpleTools.DialogueSystem {
			if (Time.unscaledTime - lastDialogueSound > timeUntilNextDialogueSound) {
				timeUntilNextDialogueSound = UnityEngine.Random.Range(0.02f, 0.08f);
				lastDialogueSound = Time.unscaledTime;
				if (audioSourceGroup != null)
				if (audioSourceGroup[0] != string.Empty)
					AudioManager.AudioManager.instance.PlayRandomSound(audioSourceGroup);
			}
		}
+1 −1
Original line number Diff line number Diff line
{
  "name": "com.geri.simpletools",
  "version": "1.2.0",
  "version": "1.2.1",
  "displayName": "Simple Tools",
  "description": "This package contains simple tools to use in your project.",
  "unity": "2018.4",