Browse Source

Added input sound effect for dialog / writer clicks

master
chrisgregan 9 years ago
parent
commit
cdd94d06bc
  1. BIN
      Assets/Fungus/Narrative/Audio/Click.wav
  2. 22
      Assets/Fungus/Narrative/Audio/Click.wav.meta
  3. 1
      Assets/Fungus/Narrative/Resources/SayDialog.prefab
  4. 3
      Assets/Fungus/UI/Editor/WriterAudioEditor.cs
  5. 17
      Assets/Fungus/UI/Scripts/Writer.cs
  6. 12
      Assets/Fungus/UI/Scripts/WriterAudio.cs
  7. 824
      Assets/FungusExamples/TheHunter/TheHunter.unity

BIN
Assets/Fungus/Narrative/Audio/Click.wav

Binary file not shown.

22
Assets/Fungus/Narrative/Audio/Click.wav.meta

@ -0,0 +1,22 @@
fileFormatVersion: 2
guid: 14a396b1562834718b2d52b9c4639264
timeCreated: 1440511211
licenseType: Free
AudioImporter:
serializedVersion: 6
defaultSettings:
loadType: 1
sampleRateSetting: 0
sampleRateOverride: 0
compressionFormat: 0
quality: .5
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
3D: 0
userData:
assetBundleName:
assetBundleVariant:

1
Assets/Fungus/Narrative/Resources/SayDialog.prefab

@ -220,6 +220,7 @@ MonoBehaviour:
- {fileID: 8300000, guid: f637c5ce9d10e45c7855ed89bfc6b97e, type: 3} - {fileID: 8300000, guid: f637c5ce9d10e45c7855ed89bfc6b97e, type: 3}
- {fileID: 8300000, guid: c53b7c20372e444c6bd7f2ac0729bbe2, type: 3} - {fileID: 8300000, guid: c53b7c20372e444c6bd7f2ac0729bbe2, type: 3}
soundEffect: {fileID: 0} soundEffect: {fileID: 0}
inputSound: {fileID: 8300000, guid: 14a396b1562834718b2d52b9c4639264, type: 3}
--- !u!114 &11419088 --- !u!114 &11419088
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1

3
Assets/Fungus/UI/Editor/WriterAudioEditor.cs

@ -17,12 +17,14 @@ namespace Fungus
protected SerializedProperty audioModeProp; protected SerializedProperty audioModeProp;
protected SerializedProperty beepSoundsProp; protected SerializedProperty beepSoundsProp;
protected SerializedProperty soundEffectProp; protected SerializedProperty soundEffectProp;
protected SerializedProperty inputSoundProp;
protected virtual void OnEnable() protected virtual void OnEnable()
{ {
volumeProp = serializedObject.FindProperty("volume"); volumeProp = serializedObject.FindProperty("volume");
loopProp = serializedObject.FindProperty("loop"); loopProp = serializedObject.FindProperty("loop");
targetAudioSourceProp = serializedObject.FindProperty("targetAudioSource"); targetAudioSourceProp = serializedObject.FindProperty("targetAudioSource");
inputSoundProp = serializedObject.FindProperty("inputSound");
audioModeProp = serializedObject.FindProperty("audioMode"); audioModeProp = serializedObject.FindProperty("audioMode");
beepSoundsProp = serializedObject.FindProperty("beepSounds"); beepSoundsProp = serializedObject.FindProperty("beepSounds");
soundEffectProp = serializedObject.FindProperty("soundEffect"); soundEffectProp = serializedObject.FindProperty("soundEffect");
@ -35,6 +37,7 @@ namespace Fungus
EditorGUILayout.PropertyField(volumeProp); EditorGUILayout.PropertyField(volumeProp);
EditorGUILayout.PropertyField(loopProp); EditorGUILayout.PropertyField(loopProp);
EditorGUILayout.PropertyField(targetAudioSourceProp); EditorGUILayout.PropertyField(targetAudioSourceProp);
EditorGUILayout.PropertyField(inputSoundProp);
EditorGUILayout.PropertyField(audioModeProp); EditorGUILayout.PropertyField(audioModeProp);
if ((WriterAudio.AudioMode)audioModeProp.enumValueIndex == WriterAudio.AudioMode.Beeps) if ((WriterAudio.AudioMode)audioModeProp.enumValueIndex == WriterAudio.AudioMode.Beeps)

17
Assets/Fungus/UI/Scripts/Writer.cs

@ -12,6 +12,9 @@ namespace Fungus
*/ */
public interface IWriterListener public interface IWriterListener
{ {
// Called when a user input event (e.g. a click) has been received
void OnInput();
// Called when the Writer starts writing new text // Called when the Writer starts writing new text
// An optional audioClip sound effect can be supplied (e.g. for voiceover) // An optional audioClip sound effect can be supplied (e.g. for voiceover)
void OnStart(AudioClip audioClip); void OnStart(AudioClip audioClip);
@ -653,6 +656,15 @@ namespace Fungus
return go.GetComponent<AudioSource>(); return go.GetComponent<AudioSource>();
} }
protected virtual void NotifyInput()
{
foreach (IWriterListener writerListener in writerListeners)
{
writerListener.OnInput();
}
}
protected virtual void NotifyStart(AudioClip audioClip) protected virtual void NotifyStart(AudioClip audioClip)
{ {
foreach (IWriterListener writerListener in writerListeners) foreach (IWriterListener writerListener in writerListeners)
@ -699,6 +711,11 @@ namespace Fungus
public virtual void OnNextLineEvent() public virtual void OnNextLineEvent()
{ {
inputFlag = true; inputFlag = true;
if (isWriting)
{
NotifyInput();
}
} }
} }

12
Assets/Fungus/UI/Scripts/WriterAudio.cs

@ -35,6 +35,9 @@ namespace Fungus
[Tooltip("Long playing sound effect to play when writing text")] [Tooltip("Long playing sound effect to play when writing text")]
public AudioClip soundEffect; public AudioClip soundEffect;
[Tooltip("Sound effect to play on user input (e.g. a click)")]
public AudioClip inputSound;
protected float targetVolume = 0f; protected float targetVolume = 0f;
// When true, a beep will be played on every written character glyph // When true, a beep will be played on every written character glyph
@ -140,6 +143,15 @@ namespace Fungus
// IWriterListener implementation // IWriterListener implementation
// //
public virtual void OnInput()
{
if (inputSound != null)
{
// Assumes we're playing a 2D sound
AudioSource.PlayClipAtPoint(inputSound, Vector3.zero);
}
}
public virtual void OnStart(AudioClip audioClip) public virtual void OnStart(AudioClip audioClip)
{ {
Play(audioClip); Play(audioClip);

824
Assets/FungusExamples/TheHunter/TheHunter.unity

@ -271,125 +271,6 @@ Prefab:
m_RemovedComponents: [] m_RemovedComponents: []
m_ParentPrefab: {fileID: 100100000, guid: b20518d45890e4be59ba82946f88026c, type: 2} m_ParentPrefab: {fileID: 100100000, guid: b20518d45890e4be59ba82946f88026c, type: 2}
m_IsPrefabParent: 0 m_IsPrefabParent: 0
--- !u!1 &288465454
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 180152, guid: 8a005a9e0713f4cc1b5ad29fb07657d3, type: 2}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 224: {fileID: 288465455}
- 222: {fileID: 288465458}
- 114: {fileID: 288465457}
- 114: {fileID: 288465456}
m_Layer: 5
m_Name: Continue
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &288465455
RectTransform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 22433354, guid: 8a005a9e0713f4cc1b5ad29fb07657d3,
type: 2}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 288465454}
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: 1065727433}
m_Father: {fileID: 1962989802}
m_RootOrder: 3
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 1533.59998, y: 83.8300018}
m_SizeDelta: {x: 77.9000015, y: 77}
m_Pivot: {x: .5, y: .5}
--- !u!114 &288465456
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 11419088, guid: 8a005a9e0713f4cc1b5ad29fb07657d3,
type: 2}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 288465454}
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: 288465457}
m_OnClick:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 1740179574}
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 &288465457
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 11493918, guid: 8a005a9e0713f4cc1b5ad29fb07657d3,
type: 2}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 288465454}
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_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 &288465458
CanvasRenderer:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 22268826, guid: 8a005a9e0713f4cc1b5ad29fb07657d3,
type: 2}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 288465454}
--- !u!1 &307931410 --- !u!1 &307931410
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -903,7 +784,7 @@ Transform:
- {fileID: 686889653} - {fileID: 686889653}
- {fileID: 494523727} - {fileID: 494523727}
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 2 m_RootOrder: 1
--- !u!4 &494523727 stripped --- !u!4 &494523727 stripped
Transform: Transform:
m_PrefabParentObject: {fileID: 400000, guid: b20518d45890e4be59ba82946f88026c, type: 2} m_PrefabParentObject: {fileID: 400000, guid: b20518d45890e4be59ba82946f88026c, type: 2}
@ -1096,7 +977,7 @@ Transform:
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 1 m_RootOrder: 0
--- !u!114 &686889652 stripped --- !u!114 &686889652 stripped
MonoBehaviour: MonoBehaviour:
m_PrefabParentObject: {fileID: 11400000, guid: b20518d45890e4be59ba82946f88026c, m_PrefabParentObject: {fileID: 11400000, guid: b20518d45890e4be59ba82946f88026c,
@ -1341,75 +1222,6 @@ Transform:
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 0 m_RootOrder: 0
--- !u!1 &1065727432
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 155030, guid: 8a005a9e0713f4cc1b5ad29fb07657d3, type: 2}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 224: {fileID: 1065727433}
- 222: {fileID: 1065727435}
- 114: {fileID: 1065727434}
m_Layer: 5
m_Name: Text
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &1065727433
RectTransform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 22443574, guid: 8a005a9e0713f4cc1b5ad29fb07657d3,
type: 2}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1065727432}
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: 288465455}
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 &1065727434
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 11431470, guid: 8a005a9e0713f4cc1b5ad29fb07657d3,
type: 2}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1065727432}
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_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 &1065727435
CanvasRenderer:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 22257884, guid: 8a005a9e0713f4cc1b5ad29fb07657d3,
type: 2}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1065727432}
--- !u!1001 &1208210135 --- !u!1001 &1208210135
Prefab: Prefab:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -1609,159 +1421,6 @@ Transform:
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 0 m_RootOrder: 0
--- !u!1 &1260897980
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 148914, guid: 8a005a9e0713f4cc1b5ad29fb07657d3, type: 2}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 224: {fileID: 1260897984}
- 222: {fileID: 1260897983}
- 114: {fileID: 1260897982}
- 114: {fileID: 1260897981}
m_Layer: 5
m_Name: Image
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &1260897981
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 11439142, guid: 8a005a9e0713f4cc1b5ad29fb07657d3,
type: 2}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1260897980}
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!114 &1260897982
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 11448914, guid: 8a005a9e0713f4cc1b5ad29fb07657d3,
type: 2}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1260897980}
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_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 &1260897983
CanvasRenderer:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 22248914, guid: 8a005a9e0713f4cc1b5ad29fb07657d3,
type: 2}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1260897980}
--- !u!224 &1260897984
RectTransform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 22448914, guid: 8a005a9e0713f4cc1b5ad29fb07657d3,
type: 2}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1260897980}
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: 1962989802}
m_RootOrder: 1
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 1435, y: 404}
m_SizeDelta: {x: 300, y: 300}
m_Pivot: {x: .5, y: .5}
--- !u!1 &1425586166
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 188898, guid: 8a005a9e0713f4cc1b5ad29fb07657d3, type: 2}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 224: {fileID: 1425586167}
- 222: {fileID: 1425586169}
- 114: {fileID: 1425586168}
m_Layer: 5
m_Name: NameText
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &1425586167
RectTransform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 22488894, guid: 8a005a9e0713f4cc1b5ad29fb07657d3,
type: 2}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1425586166}
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: 1962989802}
m_RootOrder: 0
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 622.25, y: 281}
m_SizeDelta: {x: 1178.5, y: 71}
m_Pivot: {x: .5, y: .5}
--- !u!114 &1425586168
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 11488900, guid: 8a005a9e0713f4cc1b5ad29fb07657d3,
type: 2}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1425586166}
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_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 &1425586169
CanvasRenderer:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 22288898, guid: 8a005a9e0713f4cc1b5ad29fb07657d3,
type: 2}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1425586166}
--- !u!1001 &1557115304 --- !u!1001 &1557115304
Prefab: Prefab:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -1910,7 +1569,7 @@ Transform:
- {fileID: 577549096} - {fileID: 577549096}
- {fileID: 700450245} - {fileID: 700450245}
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 4 m_RootOrder: 3
--- !u!212 &1594072536 --- !u!212 &1594072536
SpriteRenderer: SpriteRenderer:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -1947,95 +1606,6 @@ MonoBehaviour:
Transform: Transform:
m_PrefabParentObject: {fileID: 400000, guid: e0d427add844a4d9faf970a3afa07583, type: 2} m_PrefabParentObject: {fileID: 400000, guid: e0d427add844a4d9faf970a3afa07583, type: 2}
m_PrefabInternal: {fileID: 1827495415} m_PrefabInternal: {fileID: 1827495415}
--- !u!1 &1683395730
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 188894, guid: 8a005a9e0713f4cc1b5ad29fb07657d3, type: 2}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 224: {fileID: 1683395731}
- 222: {fileID: 1683395734}
- 114: {fileID: 1683395733}
- 114: {fileID: 1683395732}
m_Layer: 5
m_Name: StoryText
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &1683395731
RectTransform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 22488896, guid: 8a005a9e0713f4cc1b5ad29fb07657d3,
type: 2}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1683395730}
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: 1962989802}
m_RootOrder: 2
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 803, y: 145.630005}
m_SizeDelta: {x: 1539, y: 199.75}
m_Pivot: {x: .5, y: .5}
--- !u!114 &1683395732
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 11439138, guid: 8a005a9e0713f4cc1b5ad29fb07657d3,
type: 2}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1683395730}
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 &1683395733
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 11488896, guid: 8a005a9e0713f4cc1b5ad29fb07657d3,
type: 2}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1683395730}
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_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 &1683395734
CanvasRenderer:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 22288894, guid: 8a005a9e0713f4cc1b5ad29fb07657d3,
type: 2}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1683395730}
--- !u!4 &1712414754 stripped --- !u!4 &1712414754 stripped
Transform: Transform:
m_PrefabParentObject: {fileID: 400000, guid: b20518d45890e4be59ba82946f88026c, type: 2} m_PrefabParentObject: {fileID: 400000, guid: b20518d45890e4be59ba82946f88026c, type: 2}
@ -2056,261 +1626,6 @@ MonoBehaviour:
type: 2} type: 2}
m_PrefabInternal: {fileID: 447139369} m_PrefabInternal: {fileID: 447139369}
m_Script: {fileID: 11500000, guid: 95c387d3e32404bcc91c60318d766bb1, type: 3} m_Script: {fileID: 11500000, guid: 95c387d3e32404bcc91c60318d766bb1, type: 3}
--- !u!1 &1740179572
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 188902, guid: 8a005a9e0713f4cc1b5ad29fb07657d3, type: 2}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 224: {fileID: 1740179573}
- 223: {fileID: 1740179582}
- 114: {fileID: 1740179581}
- 225: {fileID: 1740179580}
- 114: {fileID: 1740179579}
- 114: {fileID: 1740179578}
- 114: {fileID: 1740179577}
- 114: {fileID: 1740179576}
- 114: {fileID: 1740179574}
- 82: {fileID: 1740179575}
m_Layer: 5
m_Name: SayDialog
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &1740179573
RectTransform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 22488902, guid: 8a005a9e0713f4cc1b5ad29fb07657d3,
type: 2}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1740179572}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 0, y: 0, z: 0}
m_Children:
- {fileID: 1962989802}
m_Father: {fileID: 0}
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!114 &1740179574
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 11481894, guid: 8a005a9e0713f4cc1b5ad29fb07657d3,
type: 2}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1740179572}
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!82 &1740179575
AudioSource:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 8294266, guid: 8a005a9e0713f4cc1b5ad29fb07657d3,
type: 2}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1740179572}
m_Enabled: 1
serializedVersion: 4
OutputAudioMixerGroup: {fileID: 0}
m_audioClip: {fileID: 0}
m_PlayOnAwake: 0
m_Volume: 1
m_Pitch: 1
Loop: 0
Mute: 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 &1740179576
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 11404316, guid: 8a005a9e0713f4cc1b5ad29fb07657d3,
type: 2}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1740179572}
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}
--- !u!114 &1740179577
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 11487070, guid: 8a005a9e0713f4cc1b5ad29fb07657d3,
type: 2}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1740179572}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: a676940fce6344af1a70043b089a6c14, type: 3}
m_Name:
m_EditorClassIdentifier:
targetTextObject: {fileID: 1683395730}
writingSpeed: 60
punctuationPause: .25
hiddenTextColor: {r: 1, g: 1, b: 1, a: 0}
writeWholeWords: 0
--- !u!114 &1740179578
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 11488894, guid: 8a005a9e0713f4cc1b5ad29fb07657d3,
type: 2}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1740179572}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 3a0bbe22c246e4c78ad8e9816cbae9d5, type: 3}
m_Name:
m_EditorClassIdentifier:
fadeDuration: .25
continueButton: {fileID: 288465456}
dialogCanvas: {fileID: 1740179582}
nameText: {fileID: 1425586168}
storyText: {fileID: 1683395733}
characterImage: {fileID: 1260897982}
--- !u!114 &1740179579
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 11486804, guid: 8a005a9e0713f4cc1b5ad29fb07657d3,
type: 2}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1740179572}
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 &1740179580
CanvasGroup:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 22588896, guid: 8a005a9e0713f4cc1b5ad29fb07657d3,
type: 2}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1740179572}
m_Enabled: 1
m_Alpha: 1
m_Interactable: 1
m_BlocksRaycasts: 1
m_IgnoreParentGroups: 0
--- !u!114 &1740179581
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 11488906, guid: 8a005a9e0713f4cc1b5ad29fb07657d3,
type: 2}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1740179572}
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 &1740179582
Canvas:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 22388894, guid: 8a005a9e0713f4cc1b5ad29fb07657d3,
type: 2}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1740179572}
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!1001 &1827495415 --- !u!1001 &1827495415
Prefab: Prefab:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -2463,7 +1778,7 @@ Transform:
m_Children: m_Children:
- {fileID: 332860038} - {fileID: 332860038}
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 5 m_RootOrder: 4
--- !u!114 &1831099568 --- !u!114 &1831099568
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -2477,11 +1792,11 @@ MonoBehaviour:
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
version: 1.0 version: 1.0
scrollPos: {x: 347.039337, y: 522.620728} scrollPos: {x: 82.0114822, y: 581.36969}
variablesScrollPos: {x: 0, y: 0} variablesScrollPos: {x: 0, y: 0}
variablesExpanded: 1 variablesExpanded: 1
blockViewHeight: 400 blockViewHeight: 400
zoom: .5869748 zoom: .929995656
scrollViewRect: scrollViewRect:
serializedVersion: 2 serializedVersion: 2
x: -810.017578 x: -810.017578
@ -2951,7 +2266,7 @@ MonoBehaviour:
showAlways: 1 showAlways: 1
showCount: 1 showCount: 1
extendPrevious: 0 extendPrevious: 0
fadeOut: 0 fadeOut: 1
waitForClick: 1 waitForClick: 1
setSayDialog: {fileID: 0} setSayDialog: {fileID: 0}
--- !u!114 &1831099592 --- !u!114 &1831099592
@ -3028,7 +2343,7 @@ MonoBehaviour:
showAlways: 1 showAlways: 1
showCount: 1 showCount: 1
extendPrevious: 0 extendPrevious: 0
fadeOut: 0 fadeOut: 1
waitForClick: 1 waitForClick: 1
setSayDialog: {fileID: 0} setSayDialog: {fileID: 0}
--- !u!114 &1831099595 --- !u!114 &1831099595
@ -3139,7 +2454,7 @@ MonoBehaviour:
m_EditorClassIdentifier: m_EditorClassIdentifier:
nodeRect: nodeRect:
serializedVersion: 2 serializedVersion: 2
x: 107.654449 x: 108.729736
y: -378.268433 y: -378.268433
width: 125 width: 125
height: 40 height: 40
@ -3308,7 +2623,7 @@ MonoBehaviour:
showAlways: 1 showAlways: 1
showCount: 1 showCount: 1
extendPrevious: 0 extendPrevious: 0
fadeOut: 0 fadeOut: 1
waitForClick: 1 waitForClick: 1
setSayDialog: {fileID: 0} setSayDialog: {fileID: 0}
--- !u!114 &1831099608 --- !u!114 &1831099608
@ -3961,7 +3276,7 @@ MonoBehaviour:
m_EditorClassIdentifier: m_EditorClassIdentifier:
nodeRect: nodeRect:
serializedVersion: 2 serializedVersion: 2
x: 108.007446 x: 106.93219
y: -254.68811 y: -254.68811
width: 120 width: 120
height: 40 height: 40
@ -4045,7 +3360,7 @@ MonoBehaviour:
showAlways: 1 showAlways: 1
showCount: 1 showCount: 1
extendPrevious: 0 extendPrevious: 0
fadeOut: 0 fadeOut: 1
waitForClick: 1 waitForClick: 1
setSayDialog: {fileID: 0} setSayDialog: {fileID: 0}
--- !u!114 &1831099641 --- !u!114 &1831099641
@ -4321,119 +3636,6 @@ Prefab:
m_RemovedComponents: [] m_RemovedComponents: []
m_ParentPrefab: {fileID: 100100000, guid: e0d427add844a4d9faf970a3afa07583, type: 2} m_ParentPrefab: {fileID: 100100000, guid: e0d427add844a4d9faf970a3afa07583, type: 2}
m_IsPrefabParent: 0 m_IsPrefabParent: 0
--- !u!1 &1962989801
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 188900, guid: 8a005a9e0713f4cc1b5ad29fb07657d3, type: 2}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 224: {fileID: 1962989802}
- 222: {fileID: 1962989806}
- 114: {fileID: 1962989805}
- 225: {fileID: 1962989804}
- 114: {fileID: 1962989803}
m_Layer: 5
m_Name: Panel
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &1962989802
RectTransform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 22488900, guid: 8a005a9e0713f4cc1b5ad29fb07657d3,
type: 2}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1962989801}
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: 1425586167}
- {fileID: 1260897984}
- {fileID: 1683395731}
- {fileID: 288465455}
m_Father: {fileID: 1740179573}
m_RootOrder: 0
m_AnchorMin: {x: .5, y: 0}
m_AnchorMax: {x: .5, y: 0}
m_AnchoredPosition: {x: -805, y: 0}
m_SizeDelta: {x: 1605, y: 335}
m_Pivot: {x: 0, y: 0}
--- !u!114 &1962989803
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 11478524, guid: 8a005a9e0713f4cc1b5ad29fb07657d3,
type: 2}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1962989801}
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: 1740179574}
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 &1962989804
CanvasGroup:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 22583964, guid: 8a005a9e0713f4cc1b5ad29fb07657d3,
type: 2}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1962989801}
m_Enabled: 1
m_Alpha: 1
m_Interactable: 1
m_BlocksRaycasts: 1
m_IgnoreParentGroups: 0
--- !u!114 &1962989805
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 11488904, guid: 8a005a9e0713f4cc1b5ad29fb07657d3,
type: 2}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1962989801}
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_Sprite: {fileID: 21300000, guid: eeb00f6cd27e9ef4d9174551b3342dec, type: 3}
m_Type: 0
m_PreserveAspect: 1
m_FillCenter: 0
m_FillMethod: 0
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
--- !u!222 &1962989806
CanvasRenderer:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 22288900, guid: 8a005a9e0713f4cc1b5ad29fb07657d3,
type: 2}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1962989801}
--- !u!1 &2006673388 --- !u!1 &2006673388
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -4466,7 +3668,7 @@ Transform:
- {fileID: 842161035} - {fileID: 842161035}
- {fileID: 1218601919} - {fileID: 1218601919}
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 3 m_RootOrder: 2
--- !u!4 &2069641430 stripped --- !u!4 &2069641430 stripped
Transform: Transform:
m_PrefabParentObject: {fileID: 400000, guid: e0d427add844a4d9faf970a3afa07583, type: 2} m_PrefabParentObject: {fileID: 400000, guid: e0d427add844a4d9faf970a3afa07583, type: 2}

Loading…
Cancel
Save