diff --git a/Assets/Fungus/Narrative/Scripts/SayDialog.cs b/Assets/Fungus/Narrative/Scripts/SayDialog.cs index 39f39033..450edab8 100644 --- a/Assets/Fungus/Narrative/Scripts/SayDialog.cs +++ b/Assets/Fungus/Narrative/Scripts/SayDialog.cs @@ -129,12 +129,12 @@ namespace Fungus } } - public virtual void Say(string text, bool clearPrevious, bool waitForInput, bool fadeWhenDone, AudioClip audioClip, Action onComplete) + public virtual void Say(string text, bool clearPrevious, bool waitForInput, bool fadeWhenDone, AudioClip voiceOverClip, Action onComplete) { - StartCoroutine(SayInternal(text, clearPrevious, waitForInput, fadeWhenDone, audioClip, onComplete)); + StartCoroutine(SayInternal(text, clearPrevious, waitForInput, fadeWhenDone, voiceOverClip, onComplete)); } - protected virtual IEnumerator SayInternal(string text, bool clearPrevious, bool waitForInput, bool fadeWhenDone, AudioClip audioClip, Action onComplete) + protected virtual IEnumerator SayInternal(string text, bool clearPrevious, bool waitForInput, bool fadeWhenDone, AudioClip voiceOverClip, Action onComplete) { Writer writer = GetWriter(); @@ -148,15 +148,20 @@ namespace Fungus this.fadeWhenDone = fadeWhenDone; - // Look for a character sound effect if no voice over clip is specified - AudioClip clip = audioClip; - if (speakingCharacter != null && - clip == null) + // Voice over clip takes precedence over a character sound effect if provided + + AudioClip soundEffectClip = null; + if (voiceOverClip != null) + { + WriterAudio writerAudio = GetWriterAudio(); + writerAudio.PlayVoiceover(voiceOverClip); + } + else if (speakingCharacter != null) { - clip = speakingCharacter.soundEffect; + soundEffectClip = speakingCharacter.soundEffect; } + writer.Write(text, clearPrevious, waitForInput, soundEffectClip, onComplete); - writer.Write(text, clearPrevious, waitForInput, clip, onComplete); } protected virtual void LateUpdate() diff --git a/Assets/Fungus/UI/Scripts/WriterAudio.cs b/Assets/Fungus/UI/Scripts/WriterAudio.cs index cafc69c7..da85f431 100644 --- a/Assets/Fungus/UI/Scripts/WriterAudio.cs +++ b/Assets/Fungus/UI/Scripts/WriterAudio.cs @@ -43,6 +43,9 @@ namespace Fungus // When true, a beep will be played on every written character glyph protected bool playBeeps; + // True when a voiceover clip is playing + protected bool playingVoiceover = false; + public virtual void SetAudioMode(AudioMode mode) { audioMode = mode; @@ -63,6 +66,28 @@ namespace Fungus targetAudioSource.volume = 0f; } + /** + * Plays a voiceover audio clip. + * Voiceover behaves differently than speaking sound effects because it + * should keep on playing after the text has finished writing. It also + * does not pause for wait tags, punctuation, etc. + */ + public virtual void PlayVoiceover(AudioClip voiceOverClip) + { + if (targetAudioSource == null) + { + return; + } + + playingVoiceover = true; + + targetAudioSource.volume = 1f; + targetVolume = 1f; + targetAudioSource.loop = false; + targetAudioSource.clip = voiceOverClip; + targetAudioSource.Play(); + } + public virtual void Play(AudioClip audioClip) { if (targetAudioSource == null || @@ -72,6 +97,7 @@ namespace Fungus return; } + playingVoiceover = false; targetAudioSource.volume = 0f; targetVolume = 1f; @@ -122,6 +148,7 @@ namespace Fungus targetVolume = 0f; targetAudioSource.loop = false; playBeeps = false; + playingVoiceover = false; } public virtual void Resume() @@ -154,16 +181,28 @@ namespace Fungus public virtual void OnStart(AudioClip audioClip) { + if (playingVoiceover) + { + return; + } Play(audioClip); } public virtual void OnPause() { + if (playingVoiceover) + { + return; + } Pause(); } public virtual void OnResume() { + if (playingVoiceover) + { + return; + } Resume(); } @@ -174,6 +213,11 @@ namespace Fungus public virtual void OnGlyph() { + if (playingVoiceover) + { + return; + } + if (playBeeps && beepSounds.Count > 0) { if (!targetAudioSource.isPlaying) diff --git a/Assets/Tests/Narrative/NarrativeTests.unity b/Assets/Tests/Narrative/NarrativeTests.unity index 2e49cbaa..3d66e1b2 100644 --- a/Assets/Tests/Narrative/NarrativeTests.unity +++ b/Assets/Tests/Narrative/NarrativeTests.unity @@ -112,7 +112,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 61dddfdc5e0e44ca298d8f46f7f5a915, type: 3} m_Name: m_EditorClassIdentifier: - selectedFlowchart: {fileID: 711866616} + selectedFlowchart: {fileID: 1807695779} --- !u!4 &11556238 Transform: m_ObjectHideFlags: 1 @@ -1444,6 +1444,81 @@ CanvasRenderer: type: 2} m_PrefabInternal: {fileID: 0} m_GameObject: {fileID: 134022279} +--- !u!1 &135818568 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 153750, guid: 71327e99ebd05439fbf9180e7c8d66a9, type: 2} + m_PrefabInternal: {fileID: 0} + serializedVersion: 4 + m_Component: + - 224: {fileID: 135818569} + - 222: {fileID: 135818571} + - 114: {fileID: 135818570} + m_Layer: 5 + m_Name: NameText + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &135818569 +RectTransform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 22423606, guid: 71327e99ebd05439fbf9180e7c8d66a9, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 135818568} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 157771018} + m_RootOrder: 0 + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 0} + m_AnchoredPosition: {x: 589.25, y: 550} + m_SizeDelta: {x: 1178.5, y: 71} + m_Pivot: {x: .5, y: .5} +--- !u!114 &135818570 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 11440182, guid: 71327e99ebd05439fbf9180e7c8d66a9, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 135818568} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 708705254, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: .258823544, g: .254901975, b: .262745112, a: 1} + m_RaycastTarget: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, + Version=1.0.0.0, Culture=neutral, PublicKeyToken=null + m_FontData: + m_Font: {fileID: 12800000, guid: bb145366ce7024469a5758b08d31802c, type: 3} + m_FontSize: 50 + m_FontStyle: 0 + m_BestFit: 0 + m_MinSize: 10 + m_MaxSize: 40 + m_Alignment: 0 + m_RichText: 1 + m_HorizontalOverflow: 1 + m_VerticalOverflow: 0 + m_LineSpacing: 1 + m_Text: Character Name +--- !u!222 &135818571 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 22285096, guid: 71327e99ebd05439fbf9180e7c8d66a9, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 135818568} --- !u!114 &137767004 MonoBehaviour: m_ObjectHideFlags: 0 @@ -1717,6 +1792,103 @@ CanvasRenderer: type: 2} m_PrefabInternal: {fileID: 0} m_GameObject: {fileID: 149131494} +--- !u!1 &157771017 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 137960, guid: 71327e99ebd05439fbf9180e7c8d66a9, type: 2} + m_PrefabInternal: {fileID: 0} + serializedVersion: 4 + m_Component: + - 224: {fileID: 157771018} + - 222: {fileID: 157771021} + - 114: {fileID: 157771020} + - 114: {fileID: 157771019} + m_Layer: 5 + m_Name: StoryText + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &157771018 +RectTransform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 22451252, guid: 71327e99ebd05439fbf9180e7c8d66a9, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 157771017} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: + - {fileID: 135818569} + - {fileID: 1645730418} + m_Father: {fileID: 1792473782} + m_RootOrder: 1 + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 0} + m_AnchoredPosition: {x: 805, y: 301} + m_SizeDelta: {x: 1519, y: 509} + m_Pivot: {x: .5, y: .5} +--- !u!114 &157771019 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 11405460, guid: 71327e99ebd05439fbf9180e7c8d66a9, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 157771017} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 1679637790, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} + m_Name: + m_EditorClassIdentifier: + m_IgnoreLayout: 0 + m_MinWidth: -1 + m_MinHeight: -1 + m_PreferredWidth: 1150 + m_PreferredHeight: 200 + m_FlexibleWidth: 1 + m_FlexibleHeight: -1 +--- !u!114 &157771020 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 11446370, guid: 71327e99ebd05439fbf9180e7c8d66a9, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 157771017} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 708705254, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, + Version=1.0.0.0, Culture=neutral, PublicKeyToken=null + m_FontData: + m_Font: {fileID: 12800000, guid: 79197ecfbc3a4294a89ce589dac02cf2, type: 3} + m_FontSize: 50 + m_FontStyle: 0 + m_BestFit: 0 + m_MinSize: 10 + m_MaxSize: 40 + m_Alignment: 0 + m_RichText: 1 + m_HorizontalOverflow: 0 + m_VerticalOverflow: 0 + m_LineSpacing: 1 + m_Text: Story text +--- !u!222 &157771021 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 22229794, guid: 71327e99ebd05439fbf9180e7c8d66a9, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 157771017} --- !u!114 &183204959 MonoBehaviour: m_ObjectHideFlags: 0 @@ -2968,6 +3140,56 @@ CanvasRenderer: type: 2} m_PrefabInternal: {fileID: 0} m_GameObject: {fileID: 572306878} +--- !u!1 &580175289 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 104540, guid: 71327e99ebd05439fbf9180e7c8d66a9, type: 2} + m_PrefabInternal: {fileID: 0} + serializedVersion: 4 + m_Component: + - 4: {fileID: 580175291} + - 114: {fileID: 580175290} + m_Layer: 0 + m_Name: TestAssertions + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &580175290 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 11436442, guid: 71327e99ebd05439fbf9180e7c8d66a9, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 580175289} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 8bafa54482a87ac4cbd7ff1bfd1ac93a, type: 3} + m_Name: + m_EditorClassIdentifier: + checkAfterTime: 10 + repeatCheckTime: 0 + repeatEveryTime: 1 + checkAfterFrames: 1 + repeatCheckFrame: 1 + repeatEveryFrame: 1 + hasFailed: 0 + checkMethods: 1 + m_ActionBase: {fileID: 1472091390} + checksPerformed: 0 +--- !u!4 &580175291 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 464154, guid: 71327e99ebd05439fbf9180e7c8d66a9, type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 580175289} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 956321189} + m_RootOrder: 2 --- !u!1 &594837298 GameObject: m_ObjectHideFlags: 0 @@ -3682,8 +3904,7 @@ MonoBehaviour: width: 1114 height: 859 selectedBlock: {fileID: 711866615} - selectedCommands: - - {fileID: 711866618} + selectedCommands: [] variables: [] description: ' @@ -6138,99 +6359,412 @@ MonoBehaviour: - {fileID: 891159662} - {fileID: 891159649} - {fileID: 891159661} ---- !u!1 &969752611 +--- !u!1 &927439915 GameObject: m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 110282, guid: c6289d5f8fa843145a2355af9cb09719, type: 2} + m_PrefabParentObject: {fileID: 193682, guid: 71327e99ebd05439fbf9180e7c8d66a9, type: 2} m_PrefabInternal: {fileID: 0} serializedVersion: 4 m_Component: - - 224: {fileID: 969752612} - - 222: {fileID: 969752614} - - 114: {fileID: 969752613} - m_Layer: 0 - m_Name: Left + - 224: {fileID: 927439916} + - 223: {fileID: 927439925} + - 114: {fileID: 927439924} + - 225: {fileID: 927439923} + - 114: {fileID: 927439922} + - 114: {fileID: 927439921} + - 114: {fileID: 927439920} + - 114: {fileID: 927439919} + - 114: {fileID: 927439918} + - 82: {fileID: 927439917} + m_Layer: 5 + m_Name: SayDialog m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 ---- !u!224 &969752612 +--- !u!224 &927439916 RectTransform: m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 22410280, guid: c6289d5f8fa843145a2355af9cb09719, + m_PrefabParentObject: {fileID: 22411162, guid: 71327e99ebd05439fbf9180e7c8d66a9, type: 2} m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 969752611} + m_GameObject: {fileID: 927439915} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 983768062} - m_RootOrder: 1 - m_AnchorMin: {x: .5, y: 1} - m_AnchorMax: {x: .5, y: 1} - m_AnchoredPosition: {x: -460.429993, y: -1000} - m_SizeDelta: {x: 1000, y: 1000} - m_Pivot: {x: .5, y: 0} ---- !u!114 &969752613 -MonoBehaviour: + m_LocalScale: {x: 0, y: 0, z: 0} + m_Children: + - {fileID: 1792473782} + m_Father: {fileID: 956321189} + m_RootOrder: 0 + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 0} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0, y: 0} +--- !u!82 &927439917 +AudioSource: m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 11410284, guid: c6289d5f8fa843145a2355af9cb09719, + m_PrefabParentObject: {fileID: 8200318, guid: 71327e99ebd05439fbf9180e7c8d66a9, type: 2} m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 969752611} + m_GameObject: {fileID: 927439915} m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 0} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Sprite: {fileID: 21300000, guid: ea8f56c43254d41728f5ac4e8299b6c9, type: 3} - m_Type: 0 - m_PreserveAspect: 1 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 ---- !u!222 &969752614 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 22210278, guid: c6289d5f8fa843145a2355af9cb09719, - type: 2} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 969752611} ---- !u!1 &983768061 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 110276, guid: c6289d5f8fa843145a2355af9cb09719, type: 2} - m_PrefabInternal: {fileID: 0} serializedVersion: 4 - m_Component: - - 224: {fileID: 983768062} - - 223: {fileID: 983768063} - - 114: {fileID: 983768066} - - 114: {fileID: 983768065} - - 225: {fileID: 983768064} - m_Layer: 5 - m_Name: Canvas - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &983768062 -RectTransform: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 22410274, guid: c6289d5f8fa843145a2355af9cb09719, + OutputAudioMixerGroup: {fileID: 0} + m_audioClip: {fileID: 0} + m_PlayOnAwake: 0 + m_Volume: 1 + m_Pitch: 1 + Loop: 0 + Mute: 0 + Spatialize: 0 + Priority: 128 + DopplerLevel: 1 + MinDistance: 1 + MaxDistance: 500 + Pan2D: 0 + rolloffMode: 0 + BypassEffects: 0 + BypassListenerEffects: 0 + BypassReverbZones: 0 + rolloffCustomCurve: + serializedVersion: 2 + m_Curve: + - time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + - time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + m_PreInfinity: 2 + m_PostInfinity: 2 + panLevelCustomCurve: + serializedVersion: 2 + m_Curve: + - time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + m_PreInfinity: 2 + m_PostInfinity: 2 + spreadCustomCurve: + serializedVersion: 2 + m_Curve: + - time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + m_PreInfinity: 2 + m_PostInfinity: 2 + reverbZoneMixCustomCurve: + serializedVersion: 2 + m_Curve: + - time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + m_PreInfinity: 2 + m_PostInfinity: 2 +--- !u!114 &927439918 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 11407004, guid: 71327e99ebd05439fbf9180e7c8d66a9, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 927439915} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 43b85556abd314f3f870c18c013fdcef, type: 3} + m_Name: + m_EditorClassIdentifier: + clickMode: 1 + keyPressMode: 2 + shiftKeyEnabled: 1 + nextClickDelay: 0 + keyList: 0900000020000000 +--- !u!114 &927439919 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 11432390, guid: 71327e99ebd05439fbf9180e7c8d66a9, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 927439915} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: c4782cf42f2644447b9631f6e522160b, type: 3} + m_Name: + m_EditorClassIdentifier: + volume: 1 + loop: 1 + targetAudioSource: {fileID: 0} + audioMode: 0 + beepSounds: + - {fileID: 8300000, guid: 774486030b696474e8b3cf7f178123da, type: 3} + - {fileID: 8300000, guid: f637c5ce9d10e45c7855ed89bfc6b97e, type: 3} + - {fileID: 8300000, guid: c53b7c20372e444c6bd7f2ac0729bbe2, type: 3} + soundEffect: {fileID: 0} + inputSound: {fileID: 8300000, guid: 14a396b1562834718b2d52b9c4639264, type: 3} +--- !u!114 &927439920 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 11480936, guid: 71327e99ebd05439fbf9180e7c8d66a9, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 927439915} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a676940fce6344af1a70043b089a6c14, type: 3} + m_Name: + m_EditorClassIdentifier: + targetTextObject: {fileID: 157771017} + writingSpeed: 60 + punctuationPause: .25 + hiddenTextColor: {r: 1, g: 1, b: 1, a: 0} + writeWholeWords: 0 + forceRichText: 1 +--- !u!114 &927439921 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 11492176, guid: 71327e99ebd05439fbf9180e7c8d66a9, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 927439915} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 3a0bbe22c246e4c78ad8e9816cbae9d5, type: 3} + m_Name: + m_EditorClassIdentifier: + fadeDuration: .25 + continueButton: {fileID: 1645730419} + dialogCanvas: {fileID: 927439925} + nameText: {fileID: 135818570} + storyText: {fileID: 157771020} + characterImage: {fileID: 2121383753} + fitTextWithImage: 1 + textWidthScale: .800000012 +--- !u!114 &927439922 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 11418748, guid: 71327e99ebd05439fbf9180e7c8d66a9, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 927439915} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 1301386320, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} + m_Name: + m_EditorClassIdentifier: + m_IgnoreReversedGraphics: 1 + m_BlockingObjects: 0 + m_BlockingMask: + serializedVersion: 2 + m_Bits: 4294967295 +--- !u!225 &927439923 +CanvasGroup: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 22539740, guid: 71327e99ebd05439fbf9180e7c8d66a9, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 927439915} + m_Enabled: 1 + m_Alpha: 1 + m_Interactable: 1 + m_BlocksRaycasts: 1 + m_IgnoreParentGroups: 0 +--- !u!114 &927439924 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 11456218, guid: 71327e99ebd05439fbf9180e7c8d66a9, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 927439915} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 1980459831, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} + m_Name: + m_EditorClassIdentifier: + m_UiScaleMode: 1 + m_ReferencePixelsPerUnit: 32 + m_ScaleFactor: 1 + m_ReferenceResolution: {x: 1600, y: 1200} + m_ScreenMatchMode: 0 + m_MatchWidthOrHeight: 1 + m_PhysicalUnit: 3 + m_FallbackScreenDPI: 96 + m_DefaultSpriteDPI: 96 + m_DynamicPixelsPerUnit: 1 +--- !u!223 &927439925 +Canvas: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 22379440, guid: 71327e99ebd05439fbf9180e7c8d66a9, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 927439915} + m_Enabled: 1 + serializedVersion: 2 + m_RenderMode: 0 + m_Camera: {fileID: 0} + m_PlaneDistance: 100 + m_PixelPerfect: 1 + m_ReceivesEvents: 1 + m_OverrideSorting: 0 + m_OverridePixelPerfect: 0 + m_SortingLayerID: 0 + m_SortingOrder: 1 +--- !u!1 &956321188 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 139062, guid: 71327e99ebd05439fbf9180e7c8d66a9, type: 2} + m_PrefabInternal: {fileID: 0} + serializedVersion: 4 + m_Component: + - 4: {fileID: 956321189} + - 114: {fileID: 956321190} + m_Layer: 0 + m_Name: VoiceOverTest + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 0 +--- !u!4 &956321189 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 402742, guid: 71327e99ebd05439fbf9180e7c8d66a9, type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 956321188} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: + - {fileID: 927439916} + - {fileID: 1807695773} + - {fileID: 580175291} + m_Father: {fileID: 0} + m_RootOrder: 12 +--- !u!114 &956321190 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 11452378, guid: 71327e99ebd05439fbf9180e7c8d66a9, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 956321188} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: b1dba0b27b0864740a8720e920aa88c0, type: 3} + m_Name: + m_EditorClassIdentifier: + timeout: 60 + ignored: 0 + succeedAfterAllAssertionsAreExecuted: 0 + expectException: 0 + expectedExceptionList: + succeedWhenExceptionIsThrown: 0 + includedPlatforms: -1 + platformsToIgnore: [] + dynamic: 0 + dynamicTypeName: +--- !u!1 &969752611 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 110282, guid: c6289d5f8fa843145a2355af9cb09719, type: 2} + m_PrefabInternal: {fileID: 0} + serializedVersion: 4 + m_Component: + - 224: {fileID: 969752612} + - 222: {fileID: 969752614} + - 114: {fileID: 969752613} + m_Layer: 0 + m_Name: Left + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &969752612 +RectTransform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 22410280, guid: c6289d5f8fa843145a2355af9cb09719, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 969752611} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 983768062} + m_RootOrder: 1 + m_AnchorMin: {x: .5, y: 1} + m_AnchorMax: {x: .5, y: 1} + m_AnchoredPosition: {x: -460.429993, y: -1000} + m_SizeDelta: {x: 1000, y: 1000} + m_Pivot: {x: .5, y: 0} +--- !u!114 &969752613 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 11410284, guid: c6289d5f8fa843145a2355af9cb09719, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 969752611} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 0} + m_RaycastTarget: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, + Version=1.0.0.0, Culture=neutral, PublicKeyToken=null + m_Sprite: {fileID: 21300000, guid: ea8f56c43254d41728f5ac4e8299b6c9, type: 3} + m_Type: 0 + m_PreserveAspect: 1 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 +--- !u!222 &969752614 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 22210278, guid: c6289d5f8fa843145a2355af9cb09719, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 969752611} +--- !u!1 &983768061 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 110276, guid: c6289d5f8fa843145a2355af9cb09719, type: 2} + m_PrefabInternal: {fileID: 0} + serializedVersion: 4 + m_Component: + - 224: {fileID: 983768062} + - 223: {fileID: 983768063} + - 114: {fileID: 983768066} + - 114: {fileID: 983768065} + - 225: {fileID: 983768064} + m_Layer: 5 + m_Name: Canvas + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &983768062 +RectTransform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 22410274, guid: c6289d5f8fa843145a2355af9cb09719, type: 2} m_PrefabInternal: {fileID: 0} m_GameObject: {fileID: 983768061} @@ -8856,6 +9390,23 @@ Prefab: m_RemovedComponents: [] m_ParentPrefab: {fileID: 100100000, guid: c6289d5f8fa843145a2355af9cb09719, type: 2} m_IsPrefabParent: 0 +--- !u!114 &1472091390 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 2586c8e41f35d2f4fadde53020bf4207, type: 3} + m_Name: + m_EditorClassIdentifier: + go: {fileID: 927439915} + thisPropertyPath: AudioSource.isPlaying + compareToType: 1 + other: {fileID: 0} + otherPropertyPath: + constantValueGeneric: 1 --- !u!224 &1508308448 stripped RectTransform: m_PrefabParentObject: {fileID: 22488902, guid: 8a005a9e0713f4cc1b5ad29fb07657d3, @@ -8991,6 +9542,131 @@ MonoBehaviour: - {fileID: 21300000, guid: c779e34c6eb8e45da98c70cf2802a54c, type: 3} portraitsFace: 1 description: +--- !u!1 &1645730417 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 182438, guid: 71327e99ebd05439fbf9180e7c8d66a9, type: 2} + m_PrefabInternal: {fileID: 0} + serializedVersion: 4 + m_Component: + - 224: {fileID: 1645730418} + - 222: {fileID: 1645730421} + - 114: {fileID: 1645730420} + - 114: {fileID: 1645730419} + m_Layer: 5 + m_Name: Continue + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1645730418 +RectTransform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 22409002, guid: 71327e99ebd05439fbf9180e7c8d66a9, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1645730417} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: + - {fileID: 2013319748} + m_Father: {fileID: 157771018} + m_RootOrder: 1 + m_AnchorMin: {x: 1, y: 0} + m_AnchorMax: {x: 1, y: 0} + m_AnchoredPosition: {x: -38.9000244, y: 38.0749931} + m_SizeDelta: {x: 77.9000244, y: 77} + m_Pivot: {x: .5, y: .5} +--- !u!114 &1645730419 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 11490022, guid: 71327e99ebd05439fbf9180e7c8d66a9, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1645730417} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 1392445389, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Navigation: + m_Mode: 3 + m_SelectOnUp: {fileID: 0} + m_SelectOnDown: {fileID: 0} + m_SelectOnLeft: {fileID: 0} + m_SelectOnRight: {fileID: 0} + m_Transition: 1 + m_Colors: + m_NormalColor: {r: 1, g: 1, b: 1, a: 1} + m_HighlightedColor: {r: .960784316, g: .960784316, b: .960784316, a: 1} + m_PressedColor: {r: .784313738, g: .784313738, b: .784313738, a: 1} + m_DisabledColor: {r: .784313738, g: .784313738, b: .784313738, a: .501960814} + m_ColorMultiplier: 1 + m_FadeDuration: .100000001 + m_SpriteState: + m_HighlightedSprite: {fileID: 0} + m_PressedSprite: {fileID: 0} + m_DisabledSprite: {fileID: 0} + m_AnimationTriggers: + m_NormalTrigger: Normal + m_HighlightedTrigger: Highlighted + m_PressedTrigger: Pressed + m_DisabledTrigger: Disabled + m_Interactable: 1 + m_TargetGraphic: {fileID: 1645730420} + m_OnClick: + m_PersistentCalls: + m_Calls: + - m_Target: {fileID: 927439918} + m_MethodName: SetButtonClickedFlag + m_Mode: 1 + m_Arguments: + m_ObjectArgument: {fileID: 0} + m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine + m_IntArgument: 0 + m_FloatArgument: 0 + m_StringArgument: + m_BoolArgument: 0 + m_CallState: 2 + m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0, + Culture=neutral, PublicKeyToken=null +--- !u!114 &1645730420 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 11444642, guid: 71327e99ebd05439fbf9180e7c8d66a9, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1645730417} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, + Version=1.0.0.0, Culture=neutral, PublicKeyToken=null + m_Sprite: {fileID: 21300000, guid: 226248ac6f184e448af731df91b91958, type: 3} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 +--- !u!222 &1645730421 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 22260370, guid: 71327e99ebd05439fbf9180e7c8d66a9, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1645730417} --- !u!1 &1648578756 GameObject: m_ObjectHideFlags: 0 @@ -9275,7 +9951,7 @@ GameObject: m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 - m_IsActive: 1 + m_IsActive: 0 --- !u!114 &1667572789 MonoBehaviour: m_ObjectHideFlags: 0 @@ -9869,6 +10545,123 @@ CanvasRenderer: type: 2} m_PrefabInternal: {fileID: 0} m_GameObject: {fileID: 1754947672} +--- !u!1 &1792473781 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 173974, guid: 71327e99ebd05439fbf9180e7c8d66a9, type: 2} + m_PrefabInternal: {fileID: 0} + serializedVersion: 4 + m_Component: + - 224: {fileID: 1792473782} + - 222: {fileID: 1792473786} + - 114: {fileID: 1792473785} + - 225: {fileID: 1792473784} + - 114: {fileID: 1792473783} + m_Layer: 5 + m_Name: Panel + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1792473782 +RectTransform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 22459590, guid: 71327e99ebd05439fbf9180e7c8d66a9, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1792473781} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: + - {fileID: 2121383752} + - {fileID: 157771018} + m_Father: {fileID: 927439916} + m_RootOrder: 0 + m_AnchorMin: {x: .5, y: 0} + m_AnchorMax: {x: .5, y: 0} + m_AnchoredPosition: {x: -801.5, y: 340} + m_SizeDelta: {x: 1603, y: 659} + m_Pivot: {x: 0, y: 0} +--- !u!114 &1792473783 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 11474862, guid: 71327e99ebd05439fbf9180e7c8d66a9, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1792473781} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: -1862395651, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Delegates: + - eventID: 4 + callback: + m_PersistentCalls: + m_Calls: + - m_Target: {fileID: 927439918} + m_MethodName: SetDialogClickedFlag + m_Mode: 1 + m_Arguments: + m_ObjectArgument: {fileID: 0} + m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine + m_IntArgument: 0 + m_FloatArgument: 0 + m_StringArgument: + m_BoolArgument: 0 + m_CallState: 2 + m_TypeName: UnityEngine.EventSystems.EventTrigger+TriggerEvent, UnityEngine.UI, + Version=1.0.0.0, Culture=neutral, PublicKeyToken=null + delegates: [] +--- !u!225 &1792473784 +CanvasGroup: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 22578748, guid: 71327e99ebd05439fbf9180e7c8d66a9, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1792473781} + m_Enabled: 1 + m_Alpha: 1 + m_Interactable: 1 + m_BlocksRaycasts: 1 + m_IgnoreParentGroups: 0 +--- !u!114 &1792473785 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 11419904, guid: 71327e99ebd05439fbf9180e7c8d66a9, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1792473781} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 0} + m_RaycastTarget: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, + Version=1.0.0.0, Culture=neutral, PublicKeyToken=null + m_Sprite: {fileID: 0} + m_Type: 1 + m_PreserveAspect: 0 + m_FillCenter: 0 + m_FillMethod: 1 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 +--- !u!222 &1792473786 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 22237084, guid: 71327e99ebd05439fbf9180e7c8d66a9, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1792473781} --- !u!1 &1797328010 GameObject: m_ObjectHideFlags: 0 @@ -9983,92 +10776,303 @@ RectTransform: m_Pivot: {x: .5, y: .5} --- !u!114 &1804865466 MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 11419088, guid: 8a005a9e0713f4cc1b5ad29fb07657d3, + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 11419088, guid: 8a005a9e0713f4cc1b5ad29fb07657d3, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1804865464} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 1392445389, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Navigation: + m_Mode: 3 + m_SelectOnUp: {fileID: 0} + m_SelectOnDown: {fileID: 0} + m_SelectOnLeft: {fileID: 0} + m_SelectOnRight: {fileID: 0} + m_Transition: 1 + m_Colors: + m_NormalColor: {r: 1, g: 1, b: 1, a: 1} + m_HighlightedColor: {r: .960784316, g: .960784316, b: .960784316, a: 1} + m_PressedColor: {r: .784313738, g: .784313738, b: .784313738, a: 1} + m_DisabledColor: {r: .784313738, g: .784313738, b: .784313738, a: .501960814} + m_ColorMultiplier: 1 + m_FadeDuration: .100000001 + m_SpriteState: + m_HighlightedSprite: {fileID: 0} + m_PressedSprite: {fileID: 0} + m_DisabledSprite: {fileID: 0} + m_AnimationTriggers: + m_NormalTrigger: Normal + m_HighlightedTrigger: Highlighted + m_PressedTrigger: Pressed + m_DisabledTrigger: Disabled + m_Interactable: 1 + m_TargetGraphic: {fileID: 1804865467} + m_OnClick: + m_PersistentCalls: + m_Calls: + - m_Target: {fileID: 538232716} + m_MethodName: SetButtonClickedFlag + m_Mode: 1 + m_Arguments: + m_ObjectArgument: {fileID: 0} + m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine + m_IntArgument: 0 + m_FloatArgument: 0 + m_StringArgument: + m_BoolArgument: 0 + m_CallState: 2 + m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0, + Culture=neutral, PublicKeyToken=null +--- !u!114 &1804865467 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 11493918, guid: 8a005a9e0713f4cc1b5ad29fb07657d3, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1804865464} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, + Version=1.0.0.0, Culture=neutral, PublicKeyToken=null + m_Sprite: {fileID: 21300000, guid: 226248ac6f184e448af731df91b91958, type: 3} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 +--- !u!222 &1804865468 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 22268826, guid: 8a005a9e0713f4cc1b5ad29fb07657d3, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1804865464} +--- !u!1 &1807695772 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 188662, guid: 71327e99ebd05439fbf9180e7c8d66a9, type: 2} + m_PrefabInternal: {fileID: 0} + serializedVersion: 4 + m_Component: + - 4: {fileID: 1807695773} + - 114: {fileID: 1807695779} + - 114: {fileID: 1807695778} + - 114: {fileID: 1807695777} + - 114: {fileID: 1807695776} + - 114: {fileID: 1807695775} + - 114: {fileID: 1807695774} + - 114: {fileID: 1807695780} + m_Layer: 0 + m_Name: Flowchart + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1807695773 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 471158, guid: 71327e99ebd05439fbf9180e7c8d66a9, type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1807695772} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 956321189} + m_RootOrder: 1 +--- !u!114 &1807695774 +MonoBehaviour: + m_ObjectHideFlags: 2 + m_PrefabParentObject: {fileID: 11417496, guid: 71327e99ebd05439fbf9180e7c8d66a9, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1807695772} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 4920f47cde1a84b11ad07b7317568494, type: 3} + m_Name: + m_EditorClassIdentifier: + itemId: 4 + errorMessage: + indentLevel: 0 +--- !u!114 &1807695775 +MonoBehaviour: + m_ObjectHideFlags: 2 + m_PrefabParentObject: {fileID: 11492232, guid: 71327e99ebd05439fbf9180e7c8d66a9, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1807695772} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: ec422cd568a9c4a31ad7c36d0572b9da, type: 3} + m_Name: + m_EditorClassIdentifier: + itemId: 3 + errorMessage: + indentLevel: 0 + storyText: '{s=40} + + Two roads diverged in a yellow wood, + + and sorry I could not travel both, + + and be one traveller long I stood, + + and looked down one as far as I could, + + to where it bent in the undergrowth.{w=5}{x}' + description: + character: {fileID: 0} + portrait: {fileID: 0} + voiceOverClip: {fileID: 8300000, guid: 9301ee931368e4d8997d0c272b06fe91, type: 3} + showAlways: 1 + showCount: 1 + extendPrevious: 0 + fadeWhenDone: 1 + waitForClick: 1 + setSayDialog: {fileID: 0} +--- !u!114 &1807695776 +MonoBehaviour: + m_ObjectHideFlags: 2 + m_PrefabParentObject: {fileID: 11435178, guid: 71327e99ebd05439fbf9180e7c8d66a9, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1807695772} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: ec422cd568a9c4a31ad7c36d0572b9da, type: 3} + m_Name: + m_EditorClassIdentifier: + itemId: 1 + errorMessage: + indentLevel: 0 + storyText: '{s=40} + + Two roads diverged in a yellow wood, + + and sorry I could not travel both, + + and be one traveller long I stood,{w=2}{x} + + and looked down one as far as I could, + + to where it bent in the undergrowth.' + description: + character: {fileID: 0} + portrait: {fileID: 0} + voiceOverClip: {fileID: 8300000, guid: 9301ee931368e4d8997d0c272b06fe91, type: 3} + showAlways: 1 + showCount: 1 + extendPrevious: 0 + fadeWhenDone: 1 + waitForClick: 1 + setSayDialog: {fileID: 0} +--- !u!114 &1807695777 +MonoBehaviour: + m_ObjectHideFlags: 2 + m_PrefabParentObject: {fileID: 11479058, guid: 71327e99ebd05439fbf9180e7c8d66a9, type: 2} m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1804865464} + m_GameObject: {fileID: 1807695772} m_Enabled: 1 m_EditorHideFlags: 0 - m_Script: {fileID: 1392445389, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} + m_Script: {fileID: 11500000, guid: d2f6487d21a03404cb21b245f0242e79, type: 3} m_Name: m_EditorClassIdentifier: - m_Navigation: - m_Mode: 3 - m_SelectOnUp: {fileID: 0} - m_SelectOnDown: {fileID: 0} - m_SelectOnLeft: {fileID: 0} - m_SelectOnRight: {fileID: 0} - m_Transition: 1 - m_Colors: - m_NormalColor: {r: 1, g: 1, b: 1, a: 1} - m_HighlightedColor: {r: .960784316, g: .960784316, b: .960784316, a: 1} - m_PressedColor: {r: .784313738, g: .784313738, b: .784313738, a: 1} - m_DisabledColor: {r: .784313738, g: .784313738, b: .784313738, a: .501960814} - m_ColorMultiplier: 1 - m_FadeDuration: .100000001 - m_SpriteState: - m_HighlightedSprite: {fileID: 0} - m_PressedSprite: {fileID: 0} - m_DisabledSprite: {fileID: 0} - m_AnimationTriggers: - m_NormalTrigger: Normal - m_HighlightedTrigger: Highlighted - m_PressedTrigger: Pressed - m_DisabledTrigger: Disabled - m_Interactable: 1 - m_TargetGraphic: {fileID: 1804865467} - m_OnClick: - m_PersistentCalls: - m_Calls: - - m_Target: {fileID: 538232716} - m_MethodName: SetButtonClickedFlag - m_Mode: 1 - m_Arguments: - m_ObjectArgument: {fileID: 0} - m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine - m_IntArgument: 0 - m_FloatArgument: 0 - m_StringArgument: - m_BoolArgument: 0 - m_CallState: 2 - m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0, - Culture=neutral, PublicKeyToken=null ---- !u!114 &1804865467 + parentBlock: {fileID: 1807695778} +--- !u!114 &1807695778 MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 11493918, guid: 8a005a9e0713f4cc1b5ad29fb07657d3, + m_ObjectHideFlags: 2 + m_PrefabParentObject: {fileID: 11402736, guid: 71327e99ebd05439fbf9180e7c8d66a9, type: 2} m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1804865464} + m_GameObject: {fileID: 1807695772} m_Enabled: 1 m_EditorHideFlags: 0 - m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} + m_Script: {fileID: 11500000, guid: 3d3d73aef2cfc4f51abf34ac00241f60, type: 3} m_Name: m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Sprite: {fileID: 21300000, guid: 226248ac6f184e448af731df91b91958, type: 3} - m_Type: 0 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 ---- !u!222 &1804865468 -CanvasRenderer: + nodeRect: + serializedVersion: 2 + x: 75 + y: 71 + width: 120 + height: 40 + itemId: 0 + blockName: Start + description: + eventHandler: {fileID: 1807695777} + commandList: + - {fileID: 1807695780} + - {fileID: 1807695776} + - {fileID: 1807695775} + - {fileID: 1807695774} +--- !u!114 &1807695779 +MonoBehaviour: m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 22268826, guid: 8a005a9e0713f4cc1b5ad29fb07657d3, + m_PrefabParentObject: {fileID: 11421964, guid: 71327e99ebd05439fbf9180e7c8d66a9, type: 2} m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1804865464} + m_GameObject: {fileID: 1807695772} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 7a334fe2ffb574b3583ff3b18b4792d3, type: 3} + m_Name: + m_EditorClassIdentifier: + version: 1.0 + scrollPos: {x: 0, y: 0} + variablesScrollPos: {x: 0, y: 0} + variablesExpanded: 1 + blockViewHeight: 200 + zoom: 1 + scrollViewRect: + serializedVersion: 2 + x: -343 + y: -340 + width: 1114 + height: 859 + selectedBlock: {fileID: 0} + selectedCommands: [] + variables: [] + description: "Test if voiceover clips play correctly and \nstop when the Say command + completes." + stepPause: 0 + colorCommands: 1 + hideComponents: 1 + saveSelection: 1 + localizationId: + hideCommands: [] +--- !u!114 &1807695780 +MonoBehaviour: + m_ObjectHideFlags: 2 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1807695772} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d65d551a201c94bc79950076ff3eaf2e, type: 3} + m_Name: + m_EditorClassIdentifier: + itemId: 5 + errorMessage: + indentLevel: 0 + sayDialog: {fileID: 927439921} --- !u!1 &1837434062 GameObject: m_ObjectHideFlags: 0 @@ -11237,6 +12241,81 @@ CanvasRenderer: type: 2} m_PrefabInternal: {fileID: 0} m_GameObject: {fileID: 2011349147} +--- !u!1 &2013319747 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 153310, guid: 71327e99ebd05439fbf9180e7c8d66a9, type: 2} + m_PrefabInternal: {fileID: 0} + serializedVersion: 4 + m_Component: + - 224: {fileID: 2013319748} + - 222: {fileID: 2013319750} + - 114: {fileID: 2013319749} + m_Layer: 5 + m_Name: Text + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &2013319748 +RectTransform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 22471006, guid: 71327e99ebd05439fbf9180e7c8d66a9, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 2013319747} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 1645730418} + m_RootOrder: 0 + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: .5, y: .5} +--- !u!114 &2013319749 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 11467194, guid: 71327e99ebd05439fbf9180e7c8d66a9, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 2013319747} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 708705254, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: .196078435, g: .196078435, b: .196078435, a: 1} + m_RaycastTarget: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, + Version=1.0.0.0, Culture=neutral, PublicKeyToken=null + m_FontData: + m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} + m_FontSize: 14 + m_FontStyle: 0 + m_BestFit: 0 + m_MinSize: 10 + m_MaxSize: 40 + m_Alignment: 4 + m_RichText: 1 + m_HorizontalOverflow: 0 + m_VerticalOverflow: 0 + m_LineSpacing: 1 + m_Text: +--- !u!222 &2013319750 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 22262802, guid: 71327e99ebd05439fbf9180e7c8d66a9, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 2013319747} --- !u!1 &2043226669 GameObject: m_ObjectHideFlags: 0 @@ -11665,7 +12744,7 @@ GameObject: m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 - m_IsActive: 0 + m_IsActive: 1 --- !u!4 &2084461895 Transform: m_ObjectHideFlags: 0 @@ -11779,6 +12858,96 @@ CanvasRenderer: type: 2} m_PrefabInternal: {fileID: 0} m_GameObject: {fileID: 2101400350} +--- !u!1 &2121383751 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 110602, guid: 71327e99ebd05439fbf9180e7c8d66a9, type: 2} + m_PrefabInternal: {fileID: 0} + serializedVersion: 4 + m_Component: + - 224: {fileID: 2121383752} + - 222: {fileID: 2121383755} + - 114: {fileID: 2121383753} + - 114: {fileID: 2121383754} + m_Layer: 5 + m_Name: Image + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &2121383752 +RectTransform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 22407832, guid: 71327e99ebd05439fbf9180e7c8d66a9, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 2121383751} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 1792473782} + m_RootOrder: 0 + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 0} + m_AnchoredPosition: {x: 1386, y: 263.130005} + m_SizeDelta: {x: 357, y: 435} + m_Pivot: {x: .5, y: .5} +--- !u!114 &2121383753 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 11414900, guid: 71327e99ebd05439fbf9180e7c8d66a9, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 2121383751} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, + Version=1.0.0.0, Culture=neutral, PublicKeyToken=null + m_Sprite: {fileID: 21300000, guid: ea8f56c43254d41728f5ac4e8299b6c9, type: 3} + m_Type: 0 + m_PreserveAspect: 1 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 +--- !u!114 &2121383754 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 11439516, guid: 71327e99ebd05439fbf9180e7c8d66a9, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 2121383751} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 1679637790, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} + m_Name: + m_EditorClassIdentifier: + m_IgnoreLayout: 0 + m_MinWidth: -1 + m_MinHeight: -1 + m_PreferredWidth: 350 + m_PreferredHeight: 350 + m_FlexibleWidth: -1 + m_FlexibleHeight: -1 +--- !u!222 &2121383755 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 22244308, guid: 71327e99ebd05439fbf9180e7c8d66a9, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 2121383751} --- !u!1 &2127610498 GameObject: m_ObjectHideFlags: 0 diff --git a/Assets/Tests/TestAssets/Audio/VoiceOver.wav b/Assets/Tests/TestAssets/Audio/VoiceOver.wav new file mode 100644 index 00000000..1cdcf944 Binary files /dev/null and b/Assets/Tests/TestAssets/Audio/VoiceOver.wav differ diff --git a/Assets/Tests/TestAssets/Audio/VoiceOver.wav.meta b/Assets/Tests/TestAssets/Audio/VoiceOver.wav.meta new file mode 100644 index 00000000..82088471 --- /dev/null +++ b/Assets/Tests/TestAssets/Audio/VoiceOver.wav.meta @@ -0,0 +1,22 @@ +fileFormatVersion: 2 +guid: 9301ee931368e4d8997d0c272b06fe91 +timeCreated: 1444296783 +licenseType: Free +AudioImporter: + serializedVersion: 6 + defaultSettings: + loadType: 0 + sampleRateSetting: 0 + sampleRateOverride: 44100 + compressionFormat: 1 + quality: 1 + conversionMode: 0 + platformSettingOverrides: {} + forceToMono: 0 + normalize: 1 + preloadAudioData: 1 + loadInBackground: 0 + 3D: 1 + userData: + assetBundleName: + assetBundleVariant: