From 6c0c75cefa7d158060b3b05960f0492ae230b17b Mon Sep 17 00:00:00 2001 From: Chris Gregan Date: Mon, 9 May 2016 18:25:28 +0100 Subject: [PATCH] Updated Trigger example --- .../FungusLua/Trigger/Trigger.unity | 1086 +---------------- 1 file changed, 18 insertions(+), 1068 deletions(-) diff --git a/Assets/FungusExamples/FungusLua/Trigger/Trigger.unity b/Assets/FungusExamples/FungusLua/Trigger/Trigger.unity index f9268f00..5d3d9d39 100644 --- a/Assets/FungusExamples/FungusLua/Trigger/Trigger.unity +++ b/Assets/FungusExamples/FungusLua/Trigger/Trigger.unity @@ -145,7 +145,7 @@ Transform: m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 0} - m_RootOrder: 2 + m_RootOrder: 1 --- !u!1 &141306350 GameObject: m_ObjectHideFlags: 0 @@ -221,7 +221,7 @@ Transform: m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 0} - m_RootOrder: 4 + m_RootOrder: 2 --- !u!54 &141306355 Rigidbody: m_ObjectHideFlags: 0 @@ -264,11 +264,16 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 8c0cbb63e218a4414a796a60ffe37dd3, type: 3} m_Name: m_EditorClassIdentifier: - info: "This example shows how to execute a Lua script form a trigger event.\n\nThe - CubeTrigger object has ExecuteHandler and LuaScript components attached. The ExecuteHandler - has been set to execute the LuaScript component when a trigger enter event happens. - \n\nThe LuaBindings object looks after registering the Flowchart and SayDialog - objects so we can access them from Lua." + info: 'This example shows how to execute a Lua script from a Unity trigger event. + + + The CubeTrigger object has ExecuteHandler and LuaScript components attached. The + ExecuteHandler has been set to execute the LuaScript component when a trigger + enter event happens. If you want to execute a LuaScript component from C# script, + simply call its OnExecute() method. + + + You can find the ExecuteHandler and LuaScript components in Fungus/ThirdParty/FungusLua/Scripts' --- !u!4 &229439459 Transform: m_ObjectHideFlags: 0 @@ -280,7 +285,7 @@ Transform: m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 0} - m_RootOrder: 9 + m_RootOrder: 6 --- !u!1 &517355049 GameObject: m_ObjectHideFlags: 1 @@ -308,7 +313,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 61dddfdc5e0e44ca298d8f46f7f5a915, type: 3} m_Name: m_EditorClassIdentifier: - selectedFlowchart: {fileID: 913136539} + selectedFlowchart: {fileID: 0} --- !u!4 &517355051 Transform: m_ObjectHideFlags: 1 @@ -320,864 +325,7 @@ Transform: m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 0} - m_RootOrder: 7 ---- !u!1 &775333277 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 178698, guid: e0c2b90c058ff43f4a56a266d4fa721b, type: 2} - m_PrefabInternal: {fileID: 0} - serializedVersion: 4 - m_Component: - - 4: {fileID: 775333279} - - 114: {fileID: 775333278} - m_Layer: 0 - m_Name: LuaBindings - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &775333278 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 11414792, guid: e0c2b90c058ff43f4a56a266d4fa721b, - type: 2} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 775333277} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 4cc8a659e950044b69d7c62696c36962, type: 3} - m_Name: - m_EditorClassIdentifier: - allEnvironments: 1 - luaEnvironment: {fileID: 0} - 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 - - 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 - - UnityEngine.Vector2, UnityEngine, 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 - - UnityEngine.Rect, UnityEngine, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null - - Fungus.SayDialog, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null - - UnityEngine.AudioClip, UnityEngine, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null - - Fungus.Character, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null - - UnityEngine.Sprite, UnityEngine, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null - - UnityEngine.Color, UnityEngine, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null - - UnityEngine.UI.Button, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - - UnityEngine.Canvas, UnityEngine, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null - - UnityEngine.UI.Text, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - - UnityEngine.UI.Image, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - boundObjects: - - key: flowchart - obj: {fileID: 913136538} - component: {fileID: 913136539} - - key: saydialog - obj: {fileID: 974098819} - component: {fileID: 974098824} ---- !u!4 &775333279 -Transform: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 403334, guid: e0c2b90c058ff43f4a56a266d4fa721b, type: 2} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 775333277} - 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: 0} - m_RootOrder: 3 ---- !u!1 &913136538 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 142980, guid: 5e7fbc8d4eb714b279eeeef2262c1e1a, type: 2} - m_PrefabInternal: {fileID: 0} - serializedVersion: 4 - m_Component: - - 4: {fileID: 913136543} - - 114: {fileID: 913136539} - - 114: {fileID: 913136541} - - 114: {fileID: 913136540} - m_Layer: 0 - m_Name: Flowchart - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &913136539 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 11430050, guid: 5e7fbc8d4eb714b279eeeef2262c1e1a, - type: 2} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 913136538} - 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: 913136541} - selectedCommands: [] - variables: [] - description: 'This example shows how to execute a Block in a Flowchart via a - - Lua script executed by a trigger.' - stepPause: 0 - colorCommands: 1 - hideComponents: 1 - saveSelection: 1 - localizationId: - showLineNumbers: 0 - hideCommands: [] ---- !u!114 &913136540 -MonoBehaviour: - m_ObjectHideFlags: 2 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 913136538} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: ec422cd568a9c4a31ad7c36d0572b9da, type: 3} - m_Name: - m_EditorClassIdentifier: - itemId: 1 - errorMessage: - indentLevel: 0 - storyText: Block is executing - description: - character: {fileID: 0} - portrait: {fileID: 0} - voiceOverClip: {fileID: 0} - showAlways: 1 - showCount: 1 - extendPrevious: 0 - fadeWhenDone: 1 - waitForClick: 1 - stopVoiceover: 1 - setSayDialog: {fileID: 0} ---- !u!114 &913136541 -MonoBehaviour: - m_ObjectHideFlags: 2 - m_PrefabParentObject: {fileID: 11433304, guid: 5e7fbc8d4eb714b279eeeef2262c1e1a, - type: 2} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 913136538} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 3d3d73aef2cfc4f51abf34ac00241f60, type: 3} - m_Name: - m_EditorClassIdentifier: - nodeRect: - serializedVersion: 2 - x: 67 - y: 69 - width: 120 - height: 40 - itemId: 0 - blockName: Start - description: - eventHandler: {fileID: 0} - commandList: - - {fileID: 913136540} ---- !u!4 &913136543 -Transform: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 467082, guid: 5e7fbc8d4eb714b279eeeef2262c1e1a, type: 2} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 913136538} - 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: 0} - m_RootOrder: 6 ---- !u!1 &974098819 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 188902, guid: 8a005a9e0713f4cc1b5ad29fb07657d3, type: 2} - m_PrefabInternal: {fileID: 0} - serializedVersion: 4 - m_Component: - - 224: {fileID: 974098829} - - 223: {fileID: 974098828} - - 114: {fileID: 974098827} - - 225: {fileID: 974098826} - - 114: {fileID: 974098825} - - 114: {fileID: 974098824} - - 114: {fileID: 974098823} - - 114: {fileID: 974098822} - - 114: {fileID: 974098821} - - 82: {fileID: 974098820} - m_Layer: 5 - m_Name: SayDialog - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!82 &974098820 -AudioSource: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 8294266, guid: 8a005a9e0713f4cc1b5ad29fb07657d3, - type: 2} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 974098819} - 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 &974098821 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 11481894, guid: 8a005a9e0713f4cc1b5ad29fb07657d3, - type: 2} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 974098819} - 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 - ignoreMenuClicks: 1 ---- !u!114 &974098822 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 11404316, guid: 8a005a9e0713f4cc1b5ad29fb07657d3, - type: 2} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 974098819} - 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 &974098823 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 11487070, guid: 8a005a9e0713f4cc1b5ad29fb07657d3, - type: 2} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 974098819} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: a676940fce6344af1a70043b089a6c14, type: 3} - m_Name: - m_EditorClassIdentifier: - targetTextObject: {fileID: 1248777639} - punchObject: {fileID: 1918243061} - writingSpeed: 60 - punctuationPause: 0.25 - hiddenTextColor: {r: 1, g: 1, b: 1, a: 0} - writeWholeWords: 0 - forceRichText: 1 - instantComplete: 1 ---- !u!114 &974098824 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 11488894, guid: 8a005a9e0713f4cc1b5ad29fb07657d3, - type: 2} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 974098819} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 3a0bbe22c246e4c78ad8e9816cbae9d5, type: 3} - m_Name: - m_EditorClassIdentifier: - fadeDuration: 0.25 - continueButton: {fileID: 992052331} - dialogCanvas: {fileID: 974098828} - nameText: {fileID: 2103744777} - storyText: {fileID: 1248777642} - characterImage: {fileID: 1073217513} - fitTextWithImage: 1 ---- !u!114 &974098825 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 11486804, guid: 8a005a9e0713f4cc1b5ad29fb07657d3, - type: 2} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 974098819} - 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 &974098826 -CanvasGroup: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 22588896, guid: 8a005a9e0713f4cc1b5ad29fb07657d3, - type: 2} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 974098819} - m_Enabled: 1 - m_Alpha: 1 - m_Interactable: 1 - m_BlocksRaycasts: 1 - m_IgnoreParentGroups: 0 ---- !u!114 &974098827 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 11488906, guid: 8a005a9e0713f4cc1b5ad29fb07657d3, - type: 2} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 974098819} - 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 &974098828 -Canvas: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 22388894, guid: 8a005a9e0713f4cc1b5ad29fb07657d3, - type: 2} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 974098819} - 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_SortingBucketNormalizedSize: 0 - m_SortingLayerID: 0 - m_SortingOrder: 1 - m_TargetDisplay: 0 ---- !u!224 &974098829 -RectTransform: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 22488902, guid: 8a005a9e0713f4cc1b5ad29fb07657d3, - type: 2} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 974098819} - 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: 1918243066} - m_Father: {fileID: 0} - 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 &992052329 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 180152, guid: 8a005a9e0713f4cc1b5ad29fb07657d3, type: 2} - m_PrefabInternal: {fileID: 0} - serializedVersion: 4 - m_Component: - - 224: {fileID: 992052330} - - 222: {fileID: 992052333} - - 114: {fileID: 992052332} - - 114: {fileID: 992052331} - m_Layer: 5 - m_Name: Continue - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &992052330 -RectTransform: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 22433354, guid: 8a005a9e0713f4cc1b5ad29fb07657d3, - type: 2} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 992052329} - 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: 1281831295} - m_Father: {fileID: 1248777640} - m_RootOrder: 1 - 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 &992052331 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 11419088, guid: 8a005a9e0713f4cc1b5ad29fb07657d3, - type: 2} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 992052329} - 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: 992052332} - m_OnClick: - m_PersistentCalls: - m_Calls: - - m_Target: {fileID: 974098821} - 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 &992052332 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 11493918, guid: 8a005a9e0713f4cc1b5ad29fb07657d3, - type: 2} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 992052329} - 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 &992052333 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 22268826, guid: 8a005a9e0713f4cc1b5ad29fb07657d3, - type: 2} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 992052329} ---- !u!1 &1073217510 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 148914, guid: 8a005a9e0713f4cc1b5ad29fb07657d3, type: 2} - m_PrefabInternal: {fileID: 0} - serializedVersion: 4 - m_Component: - - 224: {fileID: 1073217511} - - 222: {fileID: 1073217514} - - 114: {fileID: 1073217513} - - 114: {fileID: 1073217512} - m_Layer: 5 - m_Name: Image - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1073217511 -RectTransform: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 22448914, guid: 8a005a9e0713f4cc1b5ad29fb07657d3, - type: 2} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1073217510} - 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: 1918243066} - m_RootOrder: 0 - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 1386, y: 263.13} - m_SizeDelta: {x: 357, y: 435} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1073217512 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 11439142, guid: 8a005a9e0713f4cc1b5ad29fb07657d3, - type: 2} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1073217510} - 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 &1073217513 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 11448914, guid: 8a005a9e0713f4cc1b5ad29fb07657d3, - type: 2} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1073217510} - 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!222 &1073217514 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 22248914, guid: 8a005a9e0713f4cc1b5ad29fb07657d3, - type: 2} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1073217510} ---- !u!1 &1248777639 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 188894, guid: 8a005a9e0713f4cc1b5ad29fb07657d3, type: 2} - m_PrefabInternal: {fileID: 0} - serializedVersion: 4 - m_Component: - - 224: {fileID: 1248777640} - - 222: {fileID: 1248777643} - - 114: {fileID: 1248777642} - - 114: {fileID: 1248777641} - m_Layer: 5 - m_Name: StoryText - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1248777640 -RectTransform: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 22488896, guid: 8a005a9e0713f4cc1b5ad29fb07657d3, - type: 2} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1248777639} - 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: 2103744776} - - {fileID: 992052330} - m_Father: {fileID: 1918243066} - m_RootOrder: 1 - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 799, y: 145.63} - m_SizeDelta: {x: 1531, y: 200} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1248777641 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 11439138, guid: 8a005a9e0713f4cc1b5ad29fb07657d3, - type: 2} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1248777639} - 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 &1248777642 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 11488896, guid: 8a005a9e0713f4cc1b5ad29fb07657d3, - type: 2} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1248777639} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 708705254, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_FontData: - m_Font: {fileID: 12800000, guid: 79197ecfbc3a4294a89ce589dac02cf2, type: 3} - m_FontSize: 50 - m_FontStyle: 0 - m_BestFit: 0 - m_MinSize: 10 - m_MaxSize: 50 - m_Alignment: 0 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: Story text ---- !u!222 &1248777643 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 22288894, guid: 8a005a9e0713f4cc1b5ad29fb07657d3, - type: 2} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1248777639} ---- !u!1 &1281831294 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 155030, guid: 8a005a9e0713f4cc1b5ad29fb07657d3, type: 2} - m_PrefabInternal: {fileID: 0} - serializedVersion: 4 - m_Component: - - 224: {fileID: 1281831295} - - 222: {fileID: 1281831297} - - 114: {fileID: 1281831296} - m_Layer: 5 - m_Name: Text - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1281831295 -RectTransform: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 22443574, guid: 8a005a9e0713f4cc1b5ad29fb07657d3, - type: 2} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1281831294} - 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: 992052330} - 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 &1281831296 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 11431470, guid: 8a005a9e0713f4cc1b5ad29fb07657d3, - type: 2} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1281831294} - 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 &1281831297 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 22257884, guid: 8a005a9e0713f4cc1b5ad29fb07657d3, - type: 2} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1281831294} + m_RootOrder: 4 --- !u!1 &1437227275 GameObject: m_ObjectHideFlags: 0 @@ -1254,7 +402,7 @@ Transform: m_LocalScale: {x: 1.1810303, y: 1.1810303, z: 1.1810303} m_Children: [] m_Father: {fileID: 0} - m_RootOrder: 5 + m_RootOrder: 3 --- !u!114 &1437227280 MonoBehaviour: m_ObjectHideFlags: 0 @@ -1268,12 +416,7 @@ MonoBehaviour: m_EditorClassIdentifier: luaEnvironment: {fileID: 0} luaFile: {fileID: 0} - luaScript: 'runblock(flowchart, "Start") - - - setsaydialog(saydialog) - - say("Block is finished");' + luaScript: say("Entered Trigger"); runAsCoroutine: 1 --- !u!114 &1437227281 MonoBehaviour: @@ -1368,124 +511,7 @@ Transform: m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 0} - m_RootOrder: 8 ---- !u!1 &1918243061 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 188900, guid: 8a005a9e0713f4cc1b5ad29fb07657d3, type: 2} - m_PrefabInternal: {fileID: 0} - serializedVersion: 4 - m_Component: - - 224: {fileID: 1918243066} - - 222: {fileID: 1918243065} - - 114: {fileID: 1918243064} - - 225: {fileID: 1918243063} - - 114: {fileID: 1918243062} - m_Layer: 5 - m_Name: Panel - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &1918243062 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 11478524, guid: 8a005a9e0713f4cc1b5ad29fb07657d3, - type: 2} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1918243061} - 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: 974098821} - 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 &1918243063 -CanvasGroup: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 22583964, guid: 8a005a9e0713f4cc1b5ad29fb07657d3, - type: 2} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1918243061} - m_Enabled: 1 - m_Alpha: 1 - m_Interactable: 1 - m_BlocksRaycasts: 1 - m_IgnoreParentGroups: 0 ---- !u!114 &1918243064 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 11488904, guid: 8a005a9e0713f4cc1b5ad29fb07657d3, - type: 2} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1918243061} - 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: 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 &1918243065 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 22288900, guid: 8a005a9e0713f4cc1b5ad29fb07657d3, - type: 2} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1918243061} ---- !u!224 &1918243066 -RectTransform: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 22488900, guid: 8a005a9e0713f4cc1b5ad29fb07657d3, - type: 2} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1918243061} - 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: 1073217511} - - {fileID: 1248777640} - m_Father: {fileID: 974098829} - m_RootOrder: 0 - m_AnchorMin: {x: 0.5, y: 0} - m_AnchorMax: {x: 0.5, y: 0} - m_AnchoredPosition: {x: -805, y: 0} - m_SizeDelta: {x: 1605, y: 335} - m_Pivot: {x: 0, y: 0} + m_RootOrder: 5 --- !u!1 &2071052756 GameObject: m_ObjectHideFlags: 0 @@ -1572,79 +598,3 @@ Transform: m_Children: [] m_Father: {fileID: 0} m_RootOrder: 0 ---- !u!1 &2103744775 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 188898, guid: 8a005a9e0713f4cc1b5ad29fb07657d3, type: 2} - m_PrefabInternal: {fileID: 0} - serializedVersion: 4 - m_Component: - - 224: {fileID: 2103744776} - - 222: {fileID: 2103744778} - - 114: {fileID: 2103744777} - m_Layer: 5 - m_Name: NameText - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &2103744776 -RectTransform: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 22488894, guid: 8a005a9e0713f4cc1b5ad29fb07657d3, - type: 2} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 2103744775} - 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: 1248777640} - m_RootOrder: 0 - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 588.75, y: 235.37001} - m_SizeDelta: {x: 1178.5, y: 71} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &2103744777 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 11488900, guid: 8a005a9e0713f4cc1b5ad29fb07657d3, - type: 2} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 2103744775} - 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: 0 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 1 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: Character Name ---- !u!222 &2103744778 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 22288898, guid: 8a005a9e0713f4cc1b5ad29fb07657d3, - type: 2} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 2103744775}