diff --git a/Assets/Fungus/Scripts/Commands/Say.cs b/Assets/Fungus/Scripts/Commands/Say.cs
index d129f78b..44a2e583 100644
--- a/Assets/Fungus/Scripts/Commands/Say.cs
+++ b/Assets/Fungus/Scripts/Commands/Say.cs
@@ -102,7 +102,7 @@ namespace Fungus
sayDialog.SetActive(true);
- sayDialog.SetCharacter(character, flowchart);
+ sayDialog.SetCharacter(character);
sayDialog.SetCharacterImage(portrait);
string displayText = storyText;
diff --git a/Assets/Fungus/Scripts/Components/SayDialog.cs b/Assets/Fungus/Scripts/Components/SayDialog.cs
index 5d387bb5..bea77588 100644
--- a/Assets/Fungus/Scripts/Components/SayDialog.cs
+++ b/Assets/Fungus/Scripts/Components/SayDialog.cs
@@ -52,6 +52,8 @@ namespace Fungus
// Most recent speaking character
protected static Character speakingCharacter;
+ protected StringSubstituter stringSubstituter = new StringSubstituter();
+
protected Writer GetWriter()
{
if (writer != null)
@@ -125,6 +127,8 @@ namespace Fungus
// Character image is hidden by default.
SetCharacterImage(null);
}
+
+ stringSubstituter.CacheSubstitutionHandlers();
}
protected virtual void LateUpdate()
@@ -261,8 +265,7 @@ namespace Fungus
/// Sets the active speaking character.
///
/// The active speaking character.
- /// An optional Flowchart to use for variable substitution in the character name string.
- public virtual void SetCharacter(Character character, Flowchart flowchart = null)
+ public virtual void SetCharacter(Character character)
{
if (character == null)
{
@@ -314,12 +317,7 @@ namespace Fungus
// Use game object name as default
characterName = character.GetObjectName();
}
-
- if (flowchart != null)
- {
- characterName = flowchart.SubstituteVariables(characterName);
- }
-
+
SetCharacterName(characterName, character.NameColor);
}
}
@@ -357,7 +355,7 @@ namespace Fungus
storyText != null &&
characterImage.gameObject.activeSelf)
{
- if (startStoryTextWidth == 0)
+ if (Mathf.Approximately(startStoryTextWidth, 0f))
{
startStoryTextWidth = storyText.rectTransform.rect.width;
startStoryTextInset = storyText.rectTransform.offsetMin.x;
@@ -381,12 +379,14 @@ namespace Fungus
///
/// Sets the character name to display on the Say Dialog.
+ /// Supports variable substitution e.g. John {$surname}
///
public virtual void SetCharacterName(string name, Color color)
{
if (nameText != null)
{
- nameText.text = name;
+ var subbedName = stringSubstituter.SubstituteStrings(name);
+ nameText.text = subbedName;
nameText.color = color;
}
}
diff --git a/Assets/Tests/StringSubstitution/StringSubstitutionTests.unity b/Assets/Tests/StringSubstitution/StringSubstitutionTests.unity
index edb7a089..6eadbd19 100644
--- a/Assets/Tests/StringSubstitution/StringSubstitutionTests.unity
+++ b/Assets/Tests/StringSubstitution/StringSubstitutionTests.unity
@@ -13,7 +13,7 @@ SceneSettings:
--- !u!104 &2
RenderSettings:
m_ObjectHideFlags: 0
- serializedVersion: 6
+ serializedVersion: 7
m_Fog: 0
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
m_FogMode: 3
@@ -37,12 +37,12 @@ RenderSettings:
m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 0}
+ m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1}
--- !u!157 &3
LightmapSettings:
m_ObjectHideFlags: 0
- serializedVersion: 6
+ serializedVersion: 7
m_GIWorkflowMode: 1
- m_LightmapsMode: 1
m_GISettings:
serializedVersion: 2
m_BounceScale: 1
@@ -53,17 +53,22 @@ LightmapSettings:
m_EnableBakedLightmaps: 0
m_EnableRealtimeLightmaps: 0
m_LightmapEditorSettings:
- serializedVersion: 3
+ serializedVersion: 4
m_Resolution: 2
m_BakeResolution: 40
m_TextureWidth: 1024
m_TextureHeight: 1024
+ m_AO: 0
m_AOMaxDistance: 1
- m_Padding: 2
m_CompAOExponent: 0
+ m_CompAOExponentDirect: 0
+ m_Padding: 2
m_LightmapParameters: {fileID: 0}
+ m_LightmapsBakeMode: 1
m_TextureCompression: 1
+ m_DirectLightInLightProbes: 1
m_FinalGather: 0
+ m_FinalGatherFiltering: 1
m_FinalGatherRayCount: 1024
m_ReflectionCompression: 2
m_LightingDataAsset: {fileID: 0}
@@ -348,6 +353,84 @@ CanvasRenderer:
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 270131671}
+--- !u!1 &353127410
+GameObject:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 1000011503031426, guid: 18f136094f85940fbb1afd025dbdeec9,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ serializedVersion: 4
+ m_Component:
+ - 224: {fileID: 353127413}
+ - 222: {fileID: 353127412}
+ - 114: {fileID: 353127411}
+ m_Layer: 5
+ m_Name: NameText
+ m_TagString: Untagged
+ m_Icon: {fileID: 0}
+ m_NavMeshLayer: 0
+ m_StaticEditorFlags: 0
+ m_IsActive: 1
+--- !u!114 &353127411
+MonoBehaviour:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 114000012480308020, guid: 18f136094f85940fbb1afd025dbdeec9,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 353127410}
+ 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: 0.25882354, g: 0.25490198, b: 0.2627451, 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: 50
+ m_Alignment: 3
+ m_AlignByGeometry: 0
+ m_RichText: 1
+ m_HorizontalOverflow: 1
+ m_VerticalOverflow: 0
+ m_LineSpacing: 1
+ m_Text: Character Name
+--- !u!222 &353127412
+CanvasRenderer:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 222000010058377154, guid: 18f136094f85940fbb1afd025dbdeec9,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 353127410}
+--- !u!224 &353127413
+RectTransform:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 224000012004684266, guid: 18f136094f85940fbb1afd025dbdeec9,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 353127410}
+ 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_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
+ m_Children: []
+ m_Father: {fileID: 1240833741}
+ m_RootOrder: 0
+ m_AnchorMin: {x: 0, y: 1}
+ m_AnchorMax: {x: 0, y: 1}
+ m_AnchoredPosition: {x: 586.5, y: -38.369995}
+ m_SizeDelta: {x: 1106, y: 71}
+ m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &436484125
GameObject:
m_ObjectHideFlags: 0
@@ -423,7 +506,6 @@ MonoBehaviour:
executeAfterFrames: 1
repeatExecuteFrame: 1
repeatEveryFrame: 1
- hasFailed: 0
executeMethods: 2
executeMethodName: OnExecute
--- !u!1001 &529362524
@@ -599,6 +681,133 @@ Transform:
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 3
+--- !u!1 &674602482
+GameObject:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 1000010441424980, guid: 18f136094f85940fbb1afd025dbdeec9,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ serializedVersion: 4
+ m_Component:
+ - 224: {fileID: 674602483}
+ - 222: {fileID: 674602486}
+ - 114: {fileID: 674602485}
+ - 114: {fileID: 674602484}
+ m_Layer: 5
+ m_Name: Continue
+ m_TagString: Untagged
+ m_Icon: {fileID: 0}
+ m_NavMeshLayer: 0
+ m_StaticEditorFlags: 0
+ m_IsActive: 1
+--- !u!224 &674602483
+RectTransform:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 224000010434940762, guid: 18f136094f85940fbb1afd025dbdeec9,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 674602482}
+ 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_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
+ m_Children:
+ - {fileID: 807797659}
+ m_Father: {fileID: 1303072903}
+ m_RootOrder: 0
+ m_AnchorMin: {x: 1, y: 0}
+ m_AnchorMax: {x: 1, y: 0}
+ m_AnchoredPosition: {x: -38.900024, y: 38.074993}
+ m_SizeDelta: {x: 77.900024, y: 77}
+ m_Pivot: {x: 0.5, y: 0.5}
+--- !u!114 &674602484
+MonoBehaviour:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 114000010721416586, guid: 18f136094f85940fbb1afd025dbdeec9,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 674602482}
+ 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: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
+ m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
+ m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
+ m_ColorMultiplier: 1
+ m_FadeDuration: 0.1
+ 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: 674602485}
+ m_OnClick:
+ m_PersistentCalls:
+ m_Calls:
+ - m_Target: {fileID: 984956675}
+ 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 &674602485
+MonoBehaviour:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 114000013132697432, guid: 18f136094f85940fbb1afd025dbdeec9,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 674602482}
+ 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 &674602486
+CanvasRenderer:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 222000011738063030, guid: 18f136094f85940fbb1afd025dbdeec9,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 674602482}
--- !u!1 &684307462
GameObject:
m_ObjectHideFlags: 0
@@ -730,6 +939,7 @@ MonoBehaviour:
- key: text
obj: {fileID: 1532141878}
component: {fileID: 1532141880}
+ showInherited: 0
--- !u!1 &709636066
GameObject:
m_ObjectHideFlags: 0
@@ -878,7 +1088,6 @@ MonoBehaviour:
executeAfterFrames: 1
repeatExecuteFrame: 1
repeatEveryFrame: 1
- hasFailed: 0
executeMethods: 2
executeMethodName: OnExecute
--- !u!4 &791892758
@@ -894,6 +1103,84 @@ Transform:
m_Children: []
m_Father: {fileID: 982964957}
m_RootOrder: 1
+--- !u!1 &807797658
+GameObject:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 1000010058971450, guid: 18f136094f85940fbb1afd025dbdeec9,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ serializedVersion: 4
+ m_Component:
+ - 224: {fileID: 807797659}
+ - 222: {fileID: 807797661}
+ - 114: {fileID: 807797660}
+ m_Layer: 5
+ m_Name: Text
+ m_TagString: Untagged
+ m_Icon: {fileID: 0}
+ m_NavMeshLayer: 0
+ m_StaticEditorFlags: 0
+ m_IsActive: 1
+--- !u!224 &807797659
+RectTransform:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 224000010283743862, guid: 18f136094f85940fbb1afd025dbdeec9,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 807797658}
+ 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_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
+ m_Children: []
+ m_Father: {fileID: 674602483}
+ 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: 0.5, y: 0.5}
+--- !u!114 &807797660
+MonoBehaviour:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 114000011010670330, guid: 18f136094f85940fbb1afd025dbdeec9,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 807797658}
+ 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: 0.19607843, g: 0.19607843, b: 0.19607843, 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_AlignByGeometry: 0
+ m_RichText: 1
+ m_HorizontalOverflow: 0
+ m_VerticalOverflow: 0
+ m_LineSpacing: 1
+ m_Text:
+--- !u!222 &807797661
+CanvasRenderer:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 222000013318035460, guid: 18f136094f85940fbb1afd025dbdeec9,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 807797658}
--- !u!1 &875535382
GameObject:
m_ObjectHideFlags: 0
@@ -955,7 +1242,6 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
itemId: 1
- errorMessage:
indentLevel: 0
textObject: {fileID: 1532141878}
text:
@@ -984,6 +1270,7 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
parentBlock: {fileID: 875535387}
+ waitForFrames: 1
--- !u!114 &875535387
MonoBehaviour:
m_ObjectHideFlags: 2
@@ -1054,6 +1341,8 @@ MonoBehaviour:
localizationId:
showLineNumbers: 0
hideCommands: []
+ luaEnvironment: {fileID: 0}
+ luaBindingName: flowchart
--- !u!114 &875535389
MonoBehaviour:
m_ObjectHideFlags: 2
@@ -1066,7 +1355,6 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
itemId: 2
- errorMessage:
indentLevel: 0
_duration:
floatRef: {fileID: 0}
@@ -1084,7 +1372,6 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
itemId: 3
- errorMessage:
indentLevel: 0
commenterName:
commentText: Wait a little to ensure the LuaScript has executed
@@ -1168,6 +1455,8 @@ MonoBehaviour:
localizationId:
showLineNumbers: 0
hideCommands: []
+ luaEnvironment: {fileID: 0}
+ luaBindingName: flowchart
--- !u!1 &982964955
GameObject:
m_ObjectHideFlags: 0
@@ -1220,49 +1509,190 @@ Transform:
- {fileID: 791892758}
m_Father: {fileID: 0}
m_RootOrder: 4
---- !u!1 &1106846132
+--- !u!1 &984956674
GameObject:
m_ObjectHideFlags: 0
- m_PrefabParentObject: {fileID: 0}
+ m_PrefabParentObject: {fileID: 1000011827784596, guid: 18f136094f85940fbb1afd025dbdeec9,
+ type: 2}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- - 224: {fileID: 1106846133}
- - 223: {fileID: 1106846136}
- - 114: {fileID: 1106846135}
- - 114: {fileID: 1106846134}
+ - 224: {fileID: 984956684}
+ - 223: {fileID: 984956683}
+ - 114: {fileID: 984956682}
+ - 225: {fileID: 984956681}
+ - 114: {fileID: 984956680}
+ - 114: {fileID: 984956679}
+ - 114: {fileID: 984956678}
+ - 114: {fileID: 984956677}
+ - 114: {fileID: 984956675}
+ - 82: {fileID: 984956676}
m_Layer: 5
- m_Name: Canvas
+ m_Name: SayDialog
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
---- !u!224 &1106846133
-RectTransform:
+--- !u!114 &984956675
+MonoBehaviour:
m_ObjectHideFlags: 0
- m_PrefabParentObject: {fileID: 0}
+ m_PrefabParentObject: {fileID: 114000010644338476, guid: 18f136094f85940fbb1afd025dbdeec9,
+ type: 2}
m_PrefabInternal: {fileID: 0}
- m_GameObject: {fileID: 1106846132}
- 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_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
- m_Children:
- - {fileID: 1532141879}
- m_Father: {fileID: 545923889}
- m_RootOrder: 3
- 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 &1106846134
+ m_GameObject: {fileID: 984956674}
+ m_Enabled: 1
+ m_EditorHideFlags: 0
+ m_Script: {fileID: 11500000, guid: 43b85556abd314f3f870c18c013fdcef, type: 3}
+ m_Name:
+ m_EditorClassIdentifier:
+ clickMode: 1
+ nextClickDelay: 0
+ cancelEnabled: 1
+ ignoreMenuClicks: 1
+--- !u!82 &984956676
+AudioSource:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 82000010648307404, guid: 18f136094f85940fbb1afd025dbdeec9,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 984956674}
+ 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
+ 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
+ m_RotationOrder: 4
+ panLevelCustomCurve:
+ serializedVersion: 2
+ m_Curve:
+ - time: 0
+ value: 0
+ inSlope: 0
+ outSlope: 0
+ tangentMode: 0
+ m_PreInfinity: 2
+ m_PostInfinity: 2
+ m_RotationOrder: 0
+ spreadCustomCurve:
+ serializedVersion: 2
+ m_Curve:
+ - time: 0
+ value: 0
+ inSlope: 0
+ outSlope: 0
+ tangentMode: 0
+ m_PreInfinity: 2
+ m_PostInfinity: 2
+ m_RotationOrder: 4
+ reverbZoneMixCustomCurve:
+ serializedVersion: 2
+ m_Curve:
+ - time: 0
+ value: 1
+ inSlope: 0
+ outSlope: 0
+ tangentMode: 0
+ m_PreInfinity: 2
+ m_PostInfinity: 2
+ m_RotationOrder: 0
+--- !u!114 &984956677
MonoBehaviour:
m_ObjectHideFlags: 0
- m_PrefabParentObject: {fileID: 0}
+ m_PrefabParentObject: {fileID: 114000010584276154, guid: 18f136094f85940fbb1afd025dbdeec9,
+ type: 2}
m_PrefabInternal: {fileID: 0}
- m_GameObject: {fileID: 1106846132}
+ m_GameObject: {fileID: 984956674}
+ 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 &984956678
+MonoBehaviour:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 114000012772563424, guid: 18f136094f85940fbb1afd025dbdeec9,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 984956674}
+ m_Enabled: 1
+ m_EditorHideFlags: 0
+ m_Script: {fileID: 11500000, guid: a676940fce6344af1a70043b089a6c14, type: 3}
+ m_Name:
+ m_EditorClassIdentifier:
+ targetTextObject: {fileID: 1303072902}
+ punchObject: {fileID: 1240833740}
+ writingSpeed: 60
+ punctuationPause: 0.25
+ hiddenTextColor: {r: 1, g: 1, b: 1, a: 0}
+ writeWholeWords: 0
+ forceRichText: 1
+ instantComplete: 1
+--- !u!114 &984956679
+MonoBehaviour:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 114000011286428996, guid: 18f136094f85940fbb1afd025dbdeec9,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 984956674}
+ m_Enabled: 1
+ m_EditorHideFlags: 0
+ m_Script: {fileID: 11500000, guid: 3a0bbe22c246e4c78ad8e9816cbae9d5, type: 3}
+ m_Name:
+ m_EditorClassIdentifier:
+ fadeDuration: 0.25
+ continueButton: {fileID: 674602484}
+ dialogCanvas: {fileID: 984956683}
+ nameText: {fileID: 353127411}
+ storyText: {fileID: 1303072904}
+ characterImage: {fileID: 1301389438}
+ fitTextWithImage: 1
+--- !u!114 &984956680
+MonoBehaviour:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 114000010349023992, guid: 18f136094f85940fbb1afd025dbdeec9,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 984956674}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 1301386320, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
@@ -1273,48 +1703,282 @@ MonoBehaviour:
m_BlockingMask:
serializedVersion: 2
m_Bits: 4294967295
---- !u!114 &1106846135
+--- !u!225 &984956681
+CanvasGroup:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 225000012081047886, guid: 18f136094f85940fbb1afd025dbdeec9,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 984956674}
+ m_Enabled: 1
+ m_Alpha: 1
+ m_Interactable: 1
+ m_BlocksRaycasts: 1
+ m_IgnoreParentGroups: 0
+--- !u!114 &984956682
MonoBehaviour:
m_ObjectHideFlags: 0
- m_PrefabParentObject: {fileID: 0}
+ m_PrefabParentObject: {fileID: 114000013033197992, guid: 18f136094f85940fbb1afd025dbdeec9,
+ type: 2}
m_PrefabInternal: {fileID: 0}
- m_GameObject: {fileID: 1106846132}
+ m_GameObject: {fileID: 984956674}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 1980459831, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
m_Name:
m_EditorClassIdentifier:
- m_UiScaleMode: 0
- m_ReferencePixelsPerUnit: 100
+ m_UiScaleMode: 1
+ m_ReferencePixelsPerUnit: 32
m_ScaleFactor: 1
- m_ReferenceResolution: {x: 800, y: 600}
+ m_ReferenceResolution: {x: 1600, y: 1200}
m_ScreenMatchMode: 0
- m_MatchWidthOrHeight: 0
+ m_MatchWidthOrHeight: 1
m_PhysicalUnit: 3
m_FallbackScreenDPI: 96
m_DefaultSpriteDPI: 96
m_DynamicPixelsPerUnit: 1
---- !u!223 &1106846136
+--- !u!223 &984956683
Canvas:
m_ObjectHideFlags: 0
- m_PrefabParentObject: {fileID: 0}
+ m_PrefabParentObject: {fileID: 223000010475120616, guid: 18f136094f85940fbb1afd025dbdeec9,
+ type: 2}
m_PrefabInternal: {fileID: 0}
- m_GameObject: {fileID: 1106846132}
+ m_GameObject: {fileID: 984956674}
m_Enabled: 1
serializedVersion: 2
m_RenderMode: 0
m_Camera: {fileID: 0}
m_PlaneDistance: 100
- m_PixelPerfect: 0
+ m_PixelPerfect: 1
m_ReceivesEvents: 1
m_OverrideSorting: 0
m_OverridePixelPerfect: 0
m_SortingBucketNormalizedSize: 0
m_SortingLayerID: 0
- m_SortingOrder: 0
+ m_SortingOrder: 1
m_TargetDisplay: 0
---- !u!1 &1153383139
-GameObject:
+--- !u!224 &984956684
+RectTransform:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 224000013204233420, guid: 18f136094f85940fbb1afd025dbdeec9,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 984956674}
+ 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_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
+ m_Children:
+ - {fileID: 1240833741}
+ m_Father: {fileID: 1008936334}
+ m_RootOrder: 1
+ 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!1 &995388415
+GameObject:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 1000012764122408, guid: 18f136094f85940fbb1afd025dbdeec9,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ serializedVersion: 4
+ m_Component:
+ - 4: {fileID: 995388416}
+ - 114: {fileID: 995388417}
+ m_Layer: 0
+ m_Name: John
+ m_TagString: Untagged
+ m_Icon: {fileID: 0}
+ m_NavMeshLayer: 0
+ m_StaticEditorFlags: 0
+ m_IsActive: 1
+--- !u!4 &995388416
+Transform:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 4000013638138754, guid: 18f136094f85940fbb1afd025dbdeec9,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 995388415}
+ 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_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
+ m_Children: []
+ m_Father: {fileID: 1008936334}
+ m_RootOrder: 3
+--- !u!114 &995388417
+MonoBehaviour:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 114000012425199006, guid: 18f136094f85940fbb1afd025dbdeec9,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 995388415}
+ m_Enabled: 1
+ m_EditorHideFlags: 0
+ m_Script: {fileID: 11500000, guid: 25fb867d2049d41f597aefdd6b19f598, type: 3}
+ m_Name:
+ m_EditorClassIdentifier:
+ nameText: John {$surname}
+ nameColor: {r: 1, g: 1, b: 1, a: 1}
+ soundEffect: {fileID: 0}
+ portraits: []
+ portraitsFace: 0
+ setSayDialog: {fileID: 0}
+ description:
+--- !u!1 &1008936332
+GameObject:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 1000013832009536, guid: 18f136094f85940fbb1afd025dbdeec9,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ serializedVersion: 4
+ m_Component:
+ - 4: {fileID: 1008936334}
+ - 114: {fileID: 1008936333}
+ m_Layer: 0
+ m_Name: ConversationNameTest
+ m_TagString: Untagged
+ m_Icon: {fileID: 0}
+ m_NavMeshLayer: 0
+ m_StaticEditorFlags: 0
+ m_IsActive: 0
+--- !u!114 &1008936333
+MonoBehaviour:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 114000010491235092, guid: 18f136094f85940fbb1afd025dbdeec9,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 1008936332}
+ m_Enabled: 1
+ m_EditorHideFlags: 0
+ m_Script: {fileID: 11500000, guid: b1dba0b27b0864740a8720e920aa88c0, type: 3}
+ m_Name:
+ m_EditorClassIdentifier:
+ timeout: 5
+ ignored: 0
+ succeedAfterAllAssertionsAreExecuted: 0
+ expectException: 0
+ expectedExceptionList:
+ succeedWhenExceptionIsThrown: 0
+ includedPlatforms: -1
+ platformsToIgnore: []
+ dynamic: 0
+ dynamicTypeName:
+--- !u!4 &1008936334
+Transform:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 4000010831357428, guid: 18f136094f85940fbb1afd025dbdeec9,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 1008936332}
+ 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_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
+ m_Children:
+ - {fileID: 1521219040}
+ - {fileID: 984956684}
+ - {fileID: 1467526468}
+ - {fileID: 995388416}
+ m_Father: {fileID: 0}
+ m_RootOrder: 9
+--- !u!1 &1106846132
+GameObject:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 0}
+ m_PrefabInternal: {fileID: 0}
+ serializedVersion: 4
+ m_Component:
+ - 224: {fileID: 1106846133}
+ - 223: {fileID: 1106846136}
+ - 114: {fileID: 1106846135}
+ - 114: {fileID: 1106846134}
+ m_Layer: 5
+ m_Name: Canvas
+ m_TagString: Untagged
+ m_Icon: {fileID: 0}
+ m_NavMeshLayer: 0
+ m_StaticEditorFlags: 0
+ m_IsActive: 1
+--- !u!224 &1106846133
+RectTransform:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 0}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 1106846132}
+ 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_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
+ m_Children:
+ - {fileID: 1532141879}
+ m_Father: {fileID: 545923889}
+ m_RootOrder: 3
+ 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 &1106846134
+MonoBehaviour:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 0}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 1106846132}
+ 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!114 &1106846135
+MonoBehaviour:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 0}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 1106846132}
+ m_Enabled: 1
+ m_EditorHideFlags: 0
+ m_Script: {fileID: 1980459831, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
+ m_Name:
+ m_EditorClassIdentifier:
+ m_UiScaleMode: 0
+ m_ReferencePixelsPerUnit: 100
+ m_ScaleFactor: 1
+ m_ReferenceResolution: {x: 800, y: 600}
+ m_ScreenMatchMode: 0
+ m_MatchWidthOrHeight: 0
+ m_PhysicalUnit: 3
+ m_FallbackScreenDPI: 96
+ m_DefaultSpriteDPI: 96
+ m_DynamicPixelsPerUnit: 1
+--- !u!223 &1106846136
+Canvas:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 0}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 1106846132}
+ m_Enabled: 1
+ serializedVersion: 2
+ m_RenderMode: 0
+ m_Camera: {fileID: 0}
+ m_PlaneDistance: 100
+ m_PixelPerfect: 0
+ m_ReceivesEvents: 1
+ m_OverrideSorting: 0
+ m_OverridePixelPerfect: 0
+ m_SortingBucketNormalizedSize: 0
+ m_SortingLayerID: 0
+ m_SortingOrder: 0
+ m_TargetDisplay: 0
+--- !u!1 &1153383139
+GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 179118, guid: 3ddf9f33ba98e4b31ba4d2b9722bea00, type: 2}
m_PrefabInternal: {fileID: 0}
@@ -1344,15 +2008,592 @@ Transform:
m_LocalScale: {x: 1, y: 1, z: 1}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_Children: []
- m_Father: {fileID: 1475498172}
+ m_Father: {fileID: 1475498172}
+ m_RootOrder: 2
+--- !u!114 &1153383141
+MonoBehaviour:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 11437776, guid: 3ddf9f33ba98e4b31ba4d2b9722bea00,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 1153383139}
+ m_Enabled: 1
+ m_EditorHideFlags: 0
+ m_Script: {fileID: 11500000, guid: c10f0b861365b42b0928858f7b086ff3, type: 3}
+ m_Name:
+ m_EditorClassIdentifier:
+ fungusModule: 0
+ activeLanguage: en
+ stringTables:
+ - {fileID: 4900000, guid: 47d7f6e35cabd4559bc7b4c260dbf15c, type: 3}
+ registerTypes:
+ - {fileID: 4900000, guid: 9c3ab7a98d51241bbb499643399fa761, type: 3}
+ - {fileID: 4900000, guid: 93fddea8208764a2dbb189cc238aed40, type: 3}
+--- !u!114 &1153383142
+MonoBehaviour:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 11483650, guid: 3ddf9f33ba98e4b31ba4d2b9722bea00,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 1153383139}
+ m_Enabled: 1
+ m_EditorHideFlags: 0
+ m_Script: {fileID: 11500000, guid: ba19c26c1ba7243d2b57ebc4329cc7c6, type: 3}
+ m_Name:
+ m_EditorClassIdentifier:
+ remoteDebugger: 0
+--- !u!114 &1153383143
+MonoBehaviour:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 11499092, guid: 3ddf9f33ba98e4b31ba4d2b9722bea00,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 1153383139}
+ m_Enabled: 1
+ m_EditorHideFlags: 0
+ m_Script: {fileID: 11500000, guid: 4cc8a659e950044b69d7c62696c36962, type: 3}
+ m_Name:
+ m_EditorClassIdentifier:
+ allEnvironments: 1
+ luaEnvironment: {fileID: 1153383142}
+ tableName:
+ registerTypes: 1
+ boundTypes:
+ - UnityEngine.GameObject, UnityEngine, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
+ - UnityEngine.PrimitiveType, UnityEngine, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
+ - UnityEngine.Component, UnityEngine, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
+ - System.Type, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+ - System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+ - System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+ - UnityEngine.SendMessageOptions, UnityEngine, Version=0.0.0.0, Culture=neutral,
+ PublicKeyToken=null
+ - UnityEngine.SceneManagement.Scene, UnityEngine, Version=0.0.0.0, Culture=neutral,
+ PublicKeyToken=null
+ - UnityEngine.Object, UnityEngine, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
+ - System.Single, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+ - UnityEngine.UI.Text, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
+ - UnityEngine.TextGenerator, UnityEngine, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
+ - UnityEngine.Texture, UnityEngine, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
+ - UnityEngine.Font, UnityEngine, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
+ - UnityEngine.TextAnchor, UnityEngine, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
+ - UnityEngine.HorizontalWrapMode, UnityEngine, Version=0.0.0.0, Culture=neutral,
+ PublicKeyToken=null
+ - UnityEngine.VerticalWrapMode, UnityEngine, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
+ - UnityEngine.FontStyle, UnityEngine, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
+ - UnityEngine.TextGenerationSettings, UnityEngine, Version=0.0.0.0, Culture=neutral,
+ PublicKeyToken=null
+ - UnityEngine.Vector2, UnityEngine, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
+ - Fungus.Flowchart, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
+ - Fungus.Block, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
+ - System.Action, System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+ - Fungus.Variable, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
+ - Fungus.Label, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
+ - Fungus.Command, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
+ - Fungus.CommandInfoAttribute, Assembly-CSharp, Version=0.0.0.0, Culture=neutral,
+ PublicKeyToken=null
+ - System.Text.StringBuilder, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+ - UnityEngine.Rect, UnityEngine, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
+ boundObjects:
+ - key: text
+ obj: {fileID: 270131671}
+ component: {fileID: 270131673}
+ - key: flowchart
+ obj: {fileID: 2064973741}
+ component: {fileID: 2064973748}
+ showInherited: 0
+--- !u!114 &1153383144
+MonoBehaviour:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 11417560, guid: 3ddf9f33ba98e4b31ba4d2b9722bea00,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 1153383139}
+ m_Enabled: 1
+ m_EditorHideFlags: 0
+ m_Script: {fileID: 11500000, guid: 446caeace65234baaacd52095d24f101, type: 3}
+ m_Name:
+ m_EditorClassIdentifier:
+ luaEnvironment: {fileID: 1153383142}
+ luaFile: {fileID: 0}
+ luaScript: '-- Test 3 levels of recursivion using string table entries
+
+ local v = sub("{$s1}")
+
+ check(v == "A B C")
+
+
+ -- Test 3 levels of recursion using flowchart variables
+
+ -- Also pulls in strings from string table
+
+ runblock(flowchart, "DoTest")
+
+
+ check(text.text == "A B C D E F")
+
+
+ pass()'
+ runAsCoroutine: 1
+--- !u!114 &1153383145
+MonoBehaviour:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 11415008, guid: 3ddf9f33ba98e4b31ba4d2b9722bea00,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 1153383139}
+ m_Enabled: 1
+ m_EditorHideFlags: 0
+ m_Script: {fileID: 11500000, guid: 6ee79785811ba49399c1b56d7309e3df, type: 3}
+ m_Name:
+ m_EditorClassIdentifier:
+ executeAfterTime: 1
+ repeatExecuteTime: 1
+ repeatEveryTime: 1
+ executeAfterFrames: 1
+ repeatExecuteFrame: 1
+ repeatEveryFrame: 1
+ executeMethods: 2
+ executeMethodName: OnExecute
+--- !u!1 &1240833740
+GameObject:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 1000011013148650, guid: 18f136094f85940fbb1afd025dbdeec9,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ serializedVersion: 4
+ m_Component:
+ - 224: {fileID: 1240833741}
+ - 222: {fileID: 1240833745}
+ - 114: {fileID: 1240833744}
+ - 225: {fileID: 1240833743}
+ - 114: {fileID: 1240833742}
+ m_Layer: 5
+ m_Name: Panel
+ m_TagString: Untagged
+ m_Icon: {fileID: 0}
+ m_NavMeshLayer: 0
+ m_StaticEditorFlags: 0
+ m_IsActive: 1
+--- !u!224 &1240833741
+RectTransform:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 224000014277208820, guid: 18f136094f85940fbb1afd025dbdeec9,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 1240833740}
+ 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_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
+ m_Children:
+ - {fileID: 353127413}
+ - {fileID: 1301389441}
+ - {fileID: 1303072903}
+ m_Father: {fileID: 984956684}
+ m_RootOrder: 0
+ m_AnchorMin: {x: 0.5, y: 0}
+ m_AnchorMax: {x: 0.5, y: 0}
+ m_AnchoredPosition: {x: -750.0001, y: 0}
+ m_SizeDelta: {x: 1500, y: 335}
+ m_Pivot: {x: 0, y: 0}
+--- !u!114 &1240833742
+MonoBehaviour:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 114000012811975892, guid: 18f136094f85940fbb1afd025dbdeec9,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 1240833740}
+ 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: 984956675}
+ 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 &1240833743
+CanvasGroup:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 225000012183414852, guid: 18f136094f85940fbb1afd025dbdeec9,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 1240833740}
+ m_Enabled: 1
+ m_Alpha: 1
+ m_Interactable: 1
+ m_BlocksRaycasts: 1
+ m_IgnoreParentGroups: 0
+--- !u!114 &1240833744
+MonoBehaviour:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 114000011477957054, guid: 18f136094f85940fbb1afd025dbdeec9,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 1240833740}
+ 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: e8ab00ef0d9684dcb9deb52811d91218, type: 3}
+ m_Type: 1
+ m_PreserveAspect: 1
+ m_FillCenter: 1
+ m_FillMethod: 0
+ m_FillAmount: 1
+ m_FillClockwise: 1
+ m_FillOrigin: 0
+--- !u!222 &1240833745
+CanvasRenderer:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 222000013760825710, guid: 18f136094f85940fbb1afd025dbdeec9,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 1240833740}
+--- !u!1 &1249712160
+GameObject:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 139298, guid: c356764ac08ce4af2806a601a4f1e6e9, type: 2}
+ m_PrefabInternal: {fileID: 0}
+ serializedVersion: 4
+ m_Component:
+ - 4: {fileID: 1249712163}
+ - 114: {fileID: 1249712162}
+ - 114: {fileID: 1249712161}
+ m_Layer: 0
+ m_Name: LuaScript
+ m_TagString: Untagged
+ m_Icon: {fileID: 0}
+ m_NavMeshLayer: 0
+ m_StaticEditorFlags: 0
+ m_IsActive: 1
+--- !u!114 &1249712161
+MonoBehaviour:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 11472914, guid: c356764ac08ce4af2806a601a4f1e6e9,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 1249712160}
+ m_Enabled: 1
+ m_EditorHideFlags: 0
+ m_Script: {fileID: 11500000, guid: 446caeace65234baaacd52095d24f101, type: 3}
+ m_Name:
+ m_EditorClassIdentifier:
+ luaEnvironment: {fileID: 1633325653}
+ luaFile: {fileID: 0}
+ luaScript: 'local subbed = ""
+
+
+ -- Private variable should not substitute
+
+ subbed = sub("{$StringVarA}")
+
+ check(subbed == "{$StringVarA}")
+
+
+ -- Public variable should substitute
+
+ subbed = sub("{$StringVarB}")
+
+ check (subbed == "Ok")
+
+
+ pass()'
+ runAsCoroutine: 1
+--- !u!114 &1249712162
+MonoBehaviour:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 11446228, guid: c356764ac08ce4af2806a601a4f1e6e9,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 1249712160}
+ m_Enabled: 1
+ m_EditorHideFlags: 0
+ m_Script: {fileID: 11500000, guid: 6ee79785811ba49399c1b56d7309e3df, type: 3}
+ m_Name:
+ m_EditorClassIdentifier:
+ executeAfterTime: 1
+ repeatExecuteTime: 1
+ repeatEveryTime: 1
+ executeAfterFrames: 1
+ repeatExecuteFrame: 1
+ repeatEveryFrame: 1
+ executeMethods: 2
+ executeMethodName: OnExecute
+--- !u!4 &1249712163
+Transform:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 449874, guid: c356764ac08ce4af2806a601a4f1e6e9, type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 1249712160}
+ 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_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
+ m_Children: []
+ m_Father: {fileID: 684307464}
+ m_RootOrder: 3
+--- !u!1 &1301389437
+GameObject:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 1000010529851912, guid: 18f136094f85940fbb1afd025dbdeec9,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ serializedVersion: 4
+ m_Component:
+ - 224: {fileID: 1301389441}
+ - 222: {fileID: 1301389440}
+ - 114: {fileID: 1301389438}
+ - 114: {fileID: 1301389439}
+ m_Layer: 5
+ m_Name: Image
+ m_TagString: Untagged
+ m_Icon: {fileID: 0}
+ m_NavMeshLayer: 0
+ m_StaticEditorFlags: 0
+ m_IsActive: 1
+--- !u!114 &1301389438
+MonoBehaviour:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 114000010253975420, guid: 18f136094f85940fbb1afd025dbdeec9,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 1301389437}
+ 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 &1301389439
+MonoBehaviour:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 114000012252980648, guid: 18f136094f85940fbb1afd025dbdeec9,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 1301389437}
+ 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 &1301389440
+CanvasRenderer:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 222000012329574346, guid: 18f136094f85940fbb1afd025dbdeec9,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 1301389437}
+--- !u!224 &1301389441
+RectTransform:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 224000010549641082, guid: 18f136094f85940fbb1afd025dbdeec9,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 1301389437}
+ 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_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
+ m_Children: []
+ m_Father: {fileID: 1240833741}
+ m_RootOrder: 1
+ m_AnchorMin: {x: 1, y: 0}
+ m_AnchorMax: {x: 1, y: 0}
+ m_AnchoredPosition: {x: -178.5, y: 263.13}
+ m_SizeDelta: {x: 357, y: 435}
+ m_Pivot: {x: 0.5, y: 0.5}
+--- !u!1 &1303072902
+GameObject:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 1000011485501440, guid: 18f136094f85940fbb1afd025dbdeec9,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ serializedVersion: 4
+ m_Component:
+ - 224: {fileID: 1303072903}
+ - 222: {fileID: 1303072906}
+ - 114: {fileID: 1303072904}
+ - 114: {fileID: 1303072905}
+ m_Layer: 5
+ m_Name: StoryText
+ m_TagString: Untagged
+ m_Icon: {fileID: 0}
+ m_NavMeshLayer: 0
+ m_StaticEditorFlags: 0
+ m_IsActive: 1
+--- !u!224 &1303072903
+RectTransform:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 224000013924239038, guid: 18f136094f85940fbb1afd025dbdeec9,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 1303072902}
+ 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_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
+ m_Children:
+ - {fileID: 674602483}
+ m_Father: {fileID: 1240833741}
+ m_RootOrder: 2
+ m_AnchorMin: {x: 0, y: 0}
+ m_AnchorMax: {x: 1, y: 0.78700006}
+ m_AnchoredPosition: {x: 3, y: 14.130005}
+ m_SizeDelta: {x: -61, y: -63}
+ m_Pivot: {x: 0.5, y: 0.5}
+--- !u!114 &1303072904
+MonoBehaviour:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 114000012739692488, guid: 18f136094f85940fbb1afd025dbdeec9,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 1303072902}
+ 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: 45
+ m_FontStyle: 0
+ m_BestFit: 0
+ m_MinSize: 4
+ m_MaxSize: 50
+ m_Alignment: 0
+ m_AlignByGeometry: 0
+ m_RichText: 1
+ m_HorizontalOverflow: 0
+ m_VerticalOverflow: 0
+ m_LineSpacing: 1
+ m_Text: Story text
+--- !u!114 &1303072905
+MonoBehaviour:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 114000013972487642, guid: 18f136094f85940fbb1afd025dbdeec9,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 1303072902}
+ 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!222 &1303072906
+CanvasRenderer:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 222000012983952204, guid: 18f136094f85940fbb1afd025dbdeec9,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 1303072902}
+--- !u!4 &1373360854 stripped
+Transform:
+ m_PrefabParentObject: {fileID: 495584, guid: 49031c561e16d4fcf91c12153f8e0b25, type: 2}
+ m_PrefabInternal: {fileID: 529362524}
+--- !u!1 &1467526467
+GameObject:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 1000013537153970, guid: 18f136094f85940fbb1afd025dbdeec9,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ serializedVersion: 4
+ m_Component:
+ - 4: {fileID: 1467526468}
+ - 114: {fileID: 1467526473}
+ - 114: {fileID: 1467526472}
+ - 114: {fileID: 1467526471}
+ - 114: {fileID: 1467526470}
+ - 114: {fileID: 1467526469}
+ m_Layer: 0
+ m_Name: Lua
+ m_TagString: Untagged
+ m_Icon: {fileID: 0}
+ m_NavMeshLayer: 0
+ m_StaticEditorFlags: 0
+ m_IsActive: 1
+--- !u!4 &1467526468
+Transform:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 4000012099611934, guid: 18f136094f85940fbb1afd025dbdeec9,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 1467526467}
+ 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_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
+ m_Children: []
+ m_Father: {fileID: 1008936334}
m_RootOrder: 2
---- !u!114 &1153383141
+--- !u!114 &1467526469
MonoBehaviour:
m_ObjectHideFlags: 0
- m_PrefabParentObject: {fileID: 11437776, guid: 3ddf9f33ba98e4b31ba4d2b9722bea00,
+ m_PrefabParentObject: {fileID: 114000012542428754, guid: 18f136094f85940fbb1afd025dbdeec9,
type: 2}
m_PrefabInternal: {fileID: 0}
- m_GameObject: {fileID: 1153383139}
+ m_GameObject: {fileID: 1467526467}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: c10f0b861365b42b0928858f7b086ff3, type: 3}
@@ -1360,38 +2601,37 @@ MonoBehaviour:
m_EditorClassIdentifier:
fungusModule: 0
activeLanguage: en
- stringTables:
- - {fileID: 4900000, guid: 47d7f6e35cabd4559bc7b4c260dbf15c, type: 3}
+ stringTables: []
registerTypes:
- {fileID: 4900000, guid: 9c3ab7a98d51241bbb499643399fa761, type: 3}
- {fileID: 4900000, guid: 93fddea8208764a2dbb189cc238aed40, type: 3}
---- !u!114 &1153383142
+--- !u!114 &1467526470
MonoBehaviour:
m_ObjectHideFlags: 0
- m_PrefabParentObject: {fileID: 11483650, guid: 3ddf9f33ba98e4b31ba4d2b9722bea00,
+ m_PrefabParentObject: {fileID: 114000010142221282, guid: 18f136094f85940fbb1afd025dbdeec9,
type: 2}
m_PrefabInternal: {fileID: 0}
- m_GameObject: {fileID: 1153383139}
+ m_GameObject: {fileID: 1467526467}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: ba19c26c1ba7243d2b57ebc4329cc7c6, type: 3}
m_Name:
m_EditorClassIdentifier:
remoteDebugger: 0
---- !u!114 &1153383143
+--- !u!114 &1467526471
MonoBehaviour:
m_ObjectHideFlags: 0
- m_PrefabParentObject: {fileID: 11499092, guid: 3ddf9f33ba98e4b31ba4d2b9722bea00,
+ m_PrefabParentObject: {fileID: 114000011723547356, guid: 18f136094f85940fbb1afd025dbdeec9,
type: 2}
m_PrefabInternal: {fileID: 0}
- m_GameObject: {fileID: 1153383139}
+ m_GameObject: {fileID: 1467526467}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4cc8a659e950044b69d7c62696c36962, type: 3}
m_Name:
m_EditorClassIdentifier:
allEnvironments: 1
- luaEnvironment: {fileID: 1153383142}
+ luaEnvironment: {fileID: 1467526470}
tableName:
registerTypes: 1
boundTypes:
@@ -1419,134 +2659,34 @@ MonoBehaviour:
- UnityEngine.TextGenerationSettings, UnityEngine, Version=0.0.0.0, Culture=neutral,
PublicKeyToken=null
- UnityEngine.Vector2, UnityEngine, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
- - Fungus.Flowchart, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
- - Fungus.Block, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
- - System.Action, System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
- - Fungus.Variable, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
- - Fungus.Label, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
- - Fungus.Command, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
- - Fungus.CommandInfoAttribute, Assembly-CSharp, Version=0.0.0.0, Culture=neutral,
- PublicKeyToken=null
- - System.Text.StringBuilder, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
- - UnityEngine.Rect, UnityEngine, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
boundObjects:
- - key: text
- obj: {fileID: 270131671}
- component: {fileID: 270131673}
- - key: flowchart
- obj: {fileID: 2064973741}
- component: {fileID: 2064973748}
---- !u!114 &1153383144
-MonoBehaviour:
- m_ObjectHideFlags: 0
- m_PrefabParentObject: {fileID: 11417560, guid: 3ddf9f33ba98e4b31ba4d2b9722bea00,
- type: 2}
- m_PrefabInternal: {fileID: 0}
- m_GameObject: {fileID: 1153383139}
- m_Enabled: 1
- m_EditorHideFlags: 0
- m_Script: {fileID: 11500000, guid: 446caeace65234baaacd52095d24f101, type: 3}
- m_Name:
- m_EditorClassIdentifier:
- luaEnvironment: {fileID: 1153383142}
- luaFile: {fileID: 0}
- luaScript: '-- Test 3 levels of recursivion using string table entries
-
- local v = sub("{$s1}")
-
- check(v == "A B C")
-
-
- -- Test 3 levels of recursion using flowchart variables
-
- -- Also pulls in strings from string table
-
- runblock(flowchart, "DoTest")
-
-
- check(text.text == "A B C D E F")
-
-
- pass()'
- runAsCoroutine: 1
---- !u!114 &1153383145
-MonoBehaviour:
- m_ObjectHideFlags: 0
- m_PrefabParentObject: {fileID: 11415008, guid: 3ddf9f33ba98e4b31ba4d2b9722bea00,
- type: 2}
- m_PrefabInternal: {fileID: 0}
- m_GameObject: {fileID: 1153383139}
- m_Enabled: 1
- m_EditorHideFlags: 0
- m_Script: {fileID: 11500000, guid: 6ee79785811ba49399c1b56d7309e3df, type: 3}
- m_Name:
- m_EditorClassIdentifier:
- executeAfterTime: 1
- repeatExecuteTime: 1
- repeatEveryTime: 1
- executeAfterFrames: 1
- repeatExecuteFrame: 1
- repeatEveryFrame: 1
- hasFailed: 0
- executeMethods: 2
- executeMethodName: OnExecute
---- !u!1 &1249712160
-GameObject:
- m_ObjectHideFlags: 0
- m_PrefabParentObject: {fileID: 139298, guid: c356764ac08ce4af2806a601a4f1e6e9, type: 2}
- m_PrefabInternal: {fileID: 0}
- serializedVersion: 4
- m_Component:
- - 4: {fileID: 1249712163}
- - 114: {fileID: 1249712162}
- - 114: {fileID: 1249712161}
- m_Layer: 0
- m_Name: LuaScript
- m_TagString: Untagged
- m_Icon: {fileID: 0}
- m_NavMeshLayer: 0
- m_StaticEditorFlags: 0
- m_IsActive: 1
---- !u!114 &1249712161
+ - key: nametext
+ obj: {fileID: 353127410}
+ component: {fileID: 353127411}
+ showInherited: 0
+--- !u!114 &1467526472
MonoBehaviour:
m_ObjectHideFlags: 0
- m_PrefabParentObject: {fileID: 11472914, guid: c356764ac08ce4af2806a601a4f1e6e9,
+ m_PrefabParentObject: {fileID: 114000011641226664, guid: 18f136094f85940fbb1afd025dbdeec9,
type: 2}
m_PrefabInternal: {fileID: 0}
- m_GameObject: {fileID: 1249712160}
+ m_GameObject: {fileID: 1467526467}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 446caeace65234baaacd52095d24f101, type: 3}
m_Name:
m_EditorClassIdentifier:
- luaEnvironment: {fileID: 1633325653}
+ luaEnvironment: {fileID: 1467526470}
luaFile: {fileID: 0}
- luaScript: 'local subbed = ""
-
-
- -- Private variable should not substitute
-
- subbed = sub("{$StringVarA}")
-
- check(subbed == "{$StringVarA}")
-
-
- -- Public variable should substitute
-
- subbed = sub("{$StringVarB}")
-
- check (subbed == "Ok")
-
-
- pass()'
+ luaScript: "wait(1)\nif not nametext.text == \"John Smith\" then\n fail()\nend\n\npass()"
runAsCoroutine: 1
---- !u!114 &1249712162
+--- !u!114 &1467526473
MonoBehaviour:
m_ObjectHideFlags: 0
- m_PrefabParentObject: {fileID: 11446228, guid: c356764ac08ce4af2806a601a4f1e6e9,
+ m_PrefabParentObject: {fileID: 114000012239993210, guid: 18f136094f85940fbb1afd025dbdeec9,
type: 2}
m_PrefabInternal: {fileID: 0}
- m_GameObject: {fileID: 1249712160}
+ m_GameObject: {fileID: 1467526467}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 6ee79785811ba49399c1b56d7309e3df, type: 3}
@@ -1558,26 +2698,8 @@ MonoBehaviour:
executeAfterFrames: 1
repeatExecuteFrame: 1
repeatEveryFrame: 1
- hasFailed: 0
executeMethods: 2
executeMethodName: OnExecute
---- !u!4 &1249712163
-Transform:
- m_ObjectHideFlags: 0
- m_PrefabParentObject: {fileID: 449874, guid: c356764ac08ce4af2806a601a4f1e6e9, type: 2}
- m_PrefabInternal: {fileID: 0}
- m_GameObject: {fileID: 1249712160}
- 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_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
- m_Children: []
- m_Father: {fileID: 684307464}
- m_RootOrder: 3
---- !u!4 &1373360854 stripped
-Transform:
- m_PrefabParentObject: {fileID: 495584, guid: 49031c561e16d4fcf91c12153f8e0b25, type: 2}
- m_PrefabInternal: {fileID: 529362524}
--- !u!1 &1475498170
GameObject:
m_ObjectHideFlags: 0
@@ -1631,6 +2753,166 @@ Transform:
- {fileID: 1153383140}
m_Father: {fileID: 0}
m_RootOrder: 8
+--- !u!1 &1521219039
+GameObject:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 1000014056054720, guid: 18f136094f85940fbb1afd025dbdeec9,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ serializedVersion: 4
+ m_Component:
+ - 4: {fileID: 1521219040}
+ - 114: {fileID: 1521219046}
+ - 114: {fileID: 1521219045}
+ - 114: {fileID: 1521219044}
+ - 114: {fileID: 1521219043}
+ - 114: {fileID: 1521219042}
+ - 114: {fileID: 1521219041}
+ m_Layer: 0
+ m_Name: Flowchart
+ m_TagString: Untagged
+ m_Icon: {fileID: 0}
+ m_NavMeshLayer: 0
+ m_StaticEditorFlags: 0
+ m_IsActive: 1
+--- !u!4 &1521219040
+Transform:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 4000010177854890, guid: 18f136094f85940fbb1afd025dbdeec9,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 1521219039}
+ 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_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
+ m_Children: []
+ m_Father: {fileID: 1008936334}
+ m_RootOrder: 0
+--- !u!114 &1521219041
+MonoBehaviour:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 114000012014016746, guid: 18f136094f85940fbb1afd025dbdeec9,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 1521219039}
+ m_Enabled: 1
+ m_EditorHideFlags: 0
+ m_Script: {fileID: 11500000, guid: d65d551a201c94bc79950076ff3eaf2e, type: 3}
+ m_Name:
+ m_EditorClassIdentifier:
+ itemId: 2
+ indentLevel: 0
+ sayDialog: {fileID: 984956679}
+--- !u!114 &1521219042
+MonoBehaviour:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 114000013208230900, guid: 18f136094f85940fbb1afd025dbdeec9,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 1521219039}
+ m_Enabled: 1
+ m_EditorHideFlags: 0
+ m_Script: {fileID: 11500000, guid: 4580f28dd8581476b810b38eea2f1316, type: 3}
+ m_Name:
+ m_EditorClassIdentifier:
+ scope: 1
+ key: surname
+ value: Smith
+--- !u!114 &1521219043
+MonoBehaviour:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 114000013555371204, guid: 18f136094f85940fbb1afd025dbdeec9,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 1521219039}
+ m_Enabled: 1
+ m_EditorHideFlags: 0
+ m_Script: {fileID: 11500000, guid: f608b8c9fb3044200aac956492d8d586, type: 3}
+ m_Name:
+ m_EditorClassIdentifier:
+ itemId: 1
+ indentLevel: 0
+ conversationText:
+ stringRef: {fileID: 0}
+ stringVal: 'john: Hi there'
+--- !u!114 &1521219044
+MonoBehaviour:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 114000010274281526, guid: 18f136094f85940fbb1afd025dbdeec9,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 1521219039}
+ m_Enabled: 1
+ m_EditorHideFlags: 0
+ m_Script: {fileID: 11500000, guid: d2f6487d21a03404cb21b245f0242e79, type: 3}
+ m_Name:
+ m_EditorClassIdentifier:
+ parentBlock: {fileID: 1521219045}
+ waitForFrames: 1
+--- !u!114 &1521219045
+MonoBehaviour:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 114000010351281010, guid: 18f136094f85940fbb1afd025dbdeec9,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 1521219039}
+ m_Enabled: 1
+ m_EditorHideFlags: 0
+ m_Script: {fileID: 11500000, guid: 3d3d73aef2cfc4f51abf34ac00241f60, type: 3}
+ m_Name:
+ m_EditorClassIdentifier:
+ nodeRect:
+ serializedVersion: 2
+ x: 67
+ y: 70
+ width: 120
+ height: 40
+ itemId: 0
+ blockName: Start
+ description:
+ eventHandler: {fileID: 1521219044}
+ commandList:
+ - {fileID: 1521219041}
+ - {fileID: 1521219043}
+--- !u!114 &1521219046
+MonoBehaviour:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 114000010664599218, guid: 18f136094f85940fbb1afd025dbdeec9,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 1521219039}
+ m_Enabled: 1
+ m_EditorHideFlags: 0
+ m_Script: {fileID: 11500000, guid: 7a334fe2ffb574b3583ff3b18b4792d3, type: 3}
+ m_Name:
+ m_EditorClassIdentifier:
+ version: 1
+ scrollPos: {x: 0, y: 0}
+ variablesScrollPos: {x: 0, y: 0}
+ variablesExpanded: 1
+ blockViewHeight: 400
+ zoom: 1
+ scrollViewRect:
+ serializedVersion: 2
+ x: -343
+ y: -340
+ width: 1114
+ height: 859
+ selectedBlock: {fileID: 1521219045}
+ selectedCommands: []
+ variables:
+ - {fileID: 1521219042}
+ description:
+ stepPause: 0
+ colorCommands: 1
+ hideComponents: 1
+ saveSelection: 1
+ localizationId:
+ showLineNumbers: 0
+ hideCommands: []
+ luaEnvironment: {fileID: 0}
+ luaBindingName: flowchart
--- !u!1 &1532141878
GameObject:
m_ObjectHideFlags: 0
@@ -1785,6 +3067,8 @@ MonoBehaviour:
localizationId:
showLineNumbers: 0
hideCommands: []
+ luaEnvironment: {fileID: 0}
+ luaBindingName: flowchart
--- !u!1 &1627631716
GameObject:
m_ObjectHideFlags: 0
@@ -1974,6 +3258,8 @@ MonoBehaviour:
localizationId:
showLineNumbers: 0
hideCommands: []
+ luaEnvironment: {fileID: 0}
+ luaBindingName: flowchart
--- !u!1001 &1967693978
Prefab:
m_ObjectHideFlags: 0
@@ -2090,7 +3376,6 @@ MonoBehaviour:
executeAfterFrames: 1
repeatExecuteFrame: 1
repeatEveryFrame: 1
- hasFailed: 0
executeMethods: 2
executeMethodName: OnExecute
--- !u!1 &2064973741
@@ -2139,7 +3424,6 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
itemId: 1
- errorMessage:
indentLevel: 0
targetTextObject: {fileID: 270131671}
text:
@@ -2238,6 +3522,8 @@ MonoBehaviour:
localizationId:
showLineNumbers: 0
hideCommands: []
+ luaEnvironment: {fileID: 0}
+ luaBindingName: flowchart
--- !u!114 &2064973749
MonoBehaviour:
m_ObjectHideFlags: 2