diff --git a/Assets/Prefabs/Dialogs/Balloon.prefab b/Assets/Prefabs/Dialogs/Balloon.prefab index 20d416b..f9df820 100644 --- a/Assets/Prefabs/Dialogs/Balloon.prefab +++ b/Assets/Prefabs/Dialogs/Balloon.prefab @@ -222,13 +222,15 @@ MonoBehaviour: m_EditorClassIdentifier: backgroundImg: {fileID: 11462492} imgTmp: {fileID: 11422782} - margin: {x: 0.2, y: 0.2} - vertex1Triangle: {x: -0.3, y: 0, z: 0} - vertex2Triangle: {x: 0.2, y: 0, z: 0} spriteBalloonNormal: {fileID: 21300000, guid: 2f4ad37d3a0704e4097bdc3a95687126, type: 3} spriteBalloonThink: {fileID: 21300000, guid: ab4ecfa2e2756a84990293be47b43140, type: 3} spriteBalloonShout: {fileID: 21300000, guid: 3935f3ea79d7c5644b8b6aaf9250cdc7, type: 3} + margin: {x: 0.2, y: 0.2} + extraMarginWidthToOneIcon: 0.3 + vertex1Triangle: {x: -0.3, y: 0, z: 0} + vertex2Triangle: {x: 0.2, y: 0, z: 0} + SecondToInflate: 0.5 --- !u!114 &11462492 MonoBehaviour: m_ObjectHideFlags: 1 diff --git a/Assets/Scenes/TestScenes/ednaldomoreiraTest/Dialog1.unity b/Assets/Scenes/TestScenes/ednaldomoreiraTest/Dialog1.unity new file mode 100644 index 0000000..ba6f995 --- /dev/null +++ b/Assets/Scenes/TestScenes/ednaldomoreiraTest/Dialog1.unity @@ -0,0 +1,634 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!29 &1 +SceneSettings: + m_ObjectHideFlags: 0 + m_PVSData: + m_PVSObjectsArray: [] + m_PVSPortalsArray: [] + m_OcclusionBakeSettings: + smallestOccluder: 5 + smallestHole: 0.25 + backfaceThreshold: 100 +--- !u!104 &2 +RenderSettings: + m_ObjectHideFlags: 0 + serializedVersion: 6 + m_Fog: 0 + m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} + m_FogMode: 3 + m_FogDensity: 0.01 + m_LinearFogStart: 0 + m_LinearFogEnd: 300 + m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} + m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} + m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} + m_AmbientIntensity: 1 + m_AmbientMode: 3 + m_SkyboxMaterial: {fileID: 0} + m_HaloStrength: 0.5 + m_FlareStrength: 1 + m_FlareFadeSpeed: 3 + m_HaloTexture: {fileID: 0} + m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} + m_DefaultReflectionMode: 0 + m_DefaultReflectionResolution: 128 + m_ReflectionBounces: 1 + m_ReflectionIntensity: 1 + m_CustomReflection: {fileID: 0} + m_Sun: {fileID: 0} +--- !u!157 &3 +LightmapSettings: + m_ObjectHideFlags: 0 + serializedVersion: 6 + m_GIWorkflowMode: 1 + m_LightmapsMode: 1 + m_GISettings: + serializedVersion: 2 + m_BounceScale: 1 + m_IndirectOutputScale: 1 + m_AlbedoBoost: 1 + m_TemporalCoherenceThreshold: 1 + m_EnvironmentLightingMode: 0 + m_EnableBakedLightmaps: 0 + m_EnableRealtimeLightmaps: 0 + m_LightmapEditorSettings: + serializedVersion: 3 + m_Resolution: 2 + m_BakeResolution: 40 + m_TextureWidth: 1024 + m_TextureHeight: 1024 + m_AOMaxDistance: 1 + m_Padding: 2 + m_CompAOExponent: 0 + m_LightmapParameters: {fileID: 0} + m_TextureCompression: 1 + m_FinalGather: 0 + m_FinalGatherRayCount: 1024 + m_ReflectionCompression: 2 + m_LightingDataAsset: {fileID: 0} + m_RuntimeCPUUsage: 25 +--- !u!196 &4 +NavMeshSettings: + serializedVersion: 2 + m_ObjectHideFlags: 0 + m_BuildSettings: + serializedVersion: 2 + agentRadius: 0.5 + agentHeight: 2 + agentSlope: 45 + agentClimb: 0.4 + ledgeDropHeight: 0 + maxJumpAcrossDistance: 0 + accuratePlacement: 0 + minRegionArea: 2 + cellSize: 0.16666667 + manualCellSize: 0 + m_NavMeshData: {fileID: 0} +--- !u!1001 &76663329 +Prefab: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 481330, guid: d70868a0adbb3014e841134379ac12e7, type: 2} + propertyPath: m_LocalPosition.x + value: -3.17 + objectReference: {fileID: 0} + - target: {fileID: 481330, guid: d70868a0adbb3014e841134379ac12e7, type: 2} + propertyPath: m_LocalPosition.y + value: -0.52 + objectReference: {fileID: 0} + - target: {fileID: 481330, guid: d70868a0adbb3014e841134379ac12e7, type: 2} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 481330, guid: d70868a0adbb3014e841134379ac12e7, type: 2} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 481330, guid: d70868a0adbb3014e841134379ac12e7, type: 2} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 481330, guid: d70868a0adbb3014e841134379ac12e7, type: 2} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 481330, guid: d70868a0adbb3014e841134379ac12e7, type: 2} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 481330, guid: d70868a0adbb3014e841134379ac12e7, type: 2} + propertyPath: m_RootOrder + value: 5 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 100100000, guid: d70868a0adbb3014e841134379ac12e7, type: 2} + m_IsPrefabParent: 0 +--- !u!114 &83095686 stripped +MonoBehaviour: + m_PrefabParentObject: {fileID: 11467358, guid: 6b7e1aed9063c3f4aa87e93e3d10a3fe, + type: 2} + m_PrefabInternal: {fileID: 759624497} + m_Script: {fileID: 11500000, guid: 9eed79ee3e0b1604abb8dcd9de07abe1, type: 3} +--- !u!1001 &305430443 +Prefab: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 481330, guid: d70868a0adbb3014e841134379ac12e7, type: 2} + propertyPath: m_LocalPosition.x + value: 5.83 + objectReference: {fileID: 0} + - target: {fileID: 481330, guid: d70868a0adbb3014e841134379ac12e7, type: 2} + propertyPath: m_LocalPosition.y + value: -0.52 + objectReference: {fileID: 0} + - target: {fileID: 481330, guid: d70868a0adbb3014e841134379ac12e7, type: 2} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 481330, guid: d70868a0adbb3014e841134379ac12e7, type: 2} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 481330, guid: d70868a0adbb3014e841134379ac12e7, type: 2} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 481330, guid: d70868a0adbb3014e841134379ac12e7, type: 2} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 481330, guid: d70868a0adbb3014e841134379ac12e7, type: 2} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 481330, guid: d70868a0adbb3014e841134379ac12e7, type: 2} + propertyPath: m_RootOrder + value: 8 + objectReference: {fileID: 0} + - target: {fileID: 169116, guid: d70868a0adbb3014e841134379ac12e7, type: 2} + propertyPath: m_Name + value: Grass_3x1 (2) + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 100100000, guid: d70868a0adbb3014e841134379ac12e7, type: 2} + m_IsPrefabParent: 0 +--- !u!1001 &339689904 +Prefab: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 481330, guid: d70868a0adbb3014e841134379ac12e7, type: 2} + propertyPath: m_LocalPosition.x + value: 2.83 + objectReference: {fileID: 0} + - target: {fileID: 481330, guid: d70868a0adbb3014e841134379ac12e7, type: 2} + propertyPath: m_LocalPosition.y + value: -0.52 + objectReference: {fileID: 0} + - target: {fileID: 481330, guid: d70868a0adbb3014e841134379ac12e7, type: 2} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 481330, guid: d70868a0adbb3014e841134379ac12e7, type: 2} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 481330, guid: d70868a0adbb3014e841134379ac12e7, type: 2} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 481330, guid: d70868a0adbb3014e841134379ac12e7, type: 2} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 481330, guid: d70868a0adbb3014e841134379ac12e7, type: 2} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 481330, guid: d70868a0adbb3014e841134379ac12e7, type: 2} + propertyPath: m_RootOrder + value: 7 + objectReference: {fileID: 0} + - target: {fileID: 169116, guid: d70868a0adbb3014e841134379ac12e7, type: 2} + propertyPath: m_Name + value: Grass_3x1 (3) + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 100100000, guid: d70868a0adbb3014e841134379ac12e7, type: 2} + m_IsPrefabParent: 0 +--- !u!1001 &541686512 +Prefab: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 481330, guid: d70868a0adbb3014e841134379ac12e7, type: 2} + propertyPath: m_LocalPosition.x + value: -0.17 + objectReference: {fileID: 0} + - target: {fileID: 481330, guid: d70868a0adbb3014e841134379ac12e7, type: 2} + propertyPath: m_LocalPosition.y + value: -0.52 + objectReference: {fileID: 0} + - target: {fileID: 481330, guid: d70868a0adbb3014e841134379ac12e7, type: 2} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 481330, guid: d70868a0adbb3014e841134379ac12e7, type: 2} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 481330, guid: d70868a0adbb3014e841134379ac12e7, type: 2} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 481330, guid: d70868a0adbb3014e841134379ac12e7, type: 2} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 481330, guid: d70868a0adbb3014e841134379ac12e7, type: 2} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 481330, guid: d70868a0adbb3014e841134379ac12e7, type: 2} + propertyPath: m_RootOrder + value: 6 + objectReference: {fileID: 0} + - target: {fileID: 169116, guid: d70868a0adbb3014e841134379ac12e7, type: 2} + propertyPath: m_Name + value: Grass_3x1 (1) + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 100100000, guid: d70868a0adbb3014e841134379ac12e7, type: 2} + m_IsPrefabParent: 0 +--- !u!1001 &621307332 +Prefab: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 11481918, guid: 5f46287fbdc37924a9c17409e6c336c8, type: 2} + propertyPath: actionableElements.Array.size + value: 2 + objectReference: {fileID: 0} + - target: {fileID: 431290, guid: 5f46287fbdc37924a9c17409e6c336c8, type: 2} + propertyPath: m_LocalPosition.x + value: 2.37 + objectReference: {fileID: 0} + - target: {fileID: 431290, guid: 5f46287fbdc37924a9c17409e6c336c8, type: 2} + propertyPath: m_LocalPosition.y + value: 0.47 + objectReference: {fileID: 0} + - target: {fileID: 431290, guid: 5f46287fbdc37924a9c17409e6c336c8, type: 2} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 431290, guid: 5f46287fbdc37924a9c17409e6c336c8, type: 2} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 431290, guid: 5f46287fbdc37924a9c17409e6c336c8, type: 2} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 431290, guid: 5f46287fbdc37924a9c17409e6c336c8, type: 2} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 431290, guid: 5f46287fbdc37924a9c17409e6c336c8, type: 2} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 431290, guid: 5f46287fbdc37924a9c17409e6c336c8, type: 2} + propertyPath: m_RootOrder + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 431290, guid: 5f46287fbdc37924a9c17409e6c336c8, type: 2} + propertyPath: m_LocalScale.x + value: 2.3249996 + objectReference: {fileID: 0} + - target: {fileID: 128834, guid: 5f46287fbdc37924a9c17409e6c336c8, type: 2} + propertyPath: m_Icon + value: + objectReference: {fileID: 419385456094870383, guid: 0000000000000000d000000000000000, + type: 0} + - target: {fileID: 11481918, guid: 5f46287fbdc37924a9c17409e6c336c8, type: 2} + propertyPath: actionableElements.Array.data[0] + value: + objectReference: {fileID: 0} + - target: {fileID: 11481918, guid: 5f46287fbdc37924a9c17409e6c336c8, type: 2} + propertyPath: actionableElements.Array.data[1] + value: + objectReference: {fileID: 83095686} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 100100000, guid: 5f46287fbdc37924a9c17409e6c336c8, type: 2} + m_IsPrefabParent: 0 +--- !u!1001 &759624497 +Prefab: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 11467358, guid: 6b7e1aed9063c3f4aa87e93e3d10a3fe, type: 2} + propertyPath: senteces.Array.size + value: 3 + objectReference: {fileID: 0} + - target: {fileID: 411396, guid: 6b7e1aed9063c3f4aa87e93e3d10a3fe, type: 2} + propertyPath: m_LocalPosition.x + value: 1.63 + objectReference: {fileID: 0} + - target: {fileID: 411396, guid: 6b7e1aed9063c3f4aa87e93e3d10a3fe, type: 2} + propertyPath: m_LocalPosition.y + value: 2.74 + objectReference: {fileID: 0} + - target: {fileID: 411396, guid: 6b7e1aed9063c3f4aa87e93e3d10a3fe, type: 2} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 411396, guid: 6b7e1aed9063c3f4aa87e93e3d10a3fe, type: 2} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 411396, guid: 6b7e1aed9063c3f4aa87e93e3d10a3fe, type: 2} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 411396, guid: 6b7e1aed9063c3f4aa87e93e3d10a3fe, type: 2} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 411396, guid: 6b7e1aed9063c3f4aa87e93e3d10a3fe, type: 2} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 411396, guid: 6b7e1aed9063c3f4aa87e93e3d10a3fe, type: 2} + propertyPath: m_RootOrder + value: 5 + objectReference: {fileID: 0} + - target: {fileID: 120882, guid: 6b7e1aed9063c3f4aa87e93e3d10a3fe, type: 2} + propertyPath: m_Icon + value: + objectReference: {fileID: 5132851093641282708, guid: 0000000000000000d000000000000000, + type: 0} + - target: {fileID: 11467358, guid: 6b7e1aed9063c3f4aa87e93e3d10a3fe, type: 2} + propertyPath: senteces.Array.data[0].sentence + value: + objectReference: {fileID: 11400000, guid: 1e816c814f39e5c499185c5929f5faa4, + type: 2} + - target: {fileID: 11467358, guid: 6b7e1aed9063c3f4aa87e93e3d10a3fe, type: 2} + propertyPath: senteces.Array.data[0].timeInSeconds + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 11467358, guid: 6b7e1aed9063c3f4aa87e93e3d10a3fe, type: 2} + propertyPath: senteces.Array.data[1].sentence + value: + objectReference: {fileID: 11400000, guid: 0a94e8b99445fde4f9e0bbcb9575fe70, + type: 2} + - target: {fileID: 11467358, guid: 6b7e1aed9063c3f4aa87e93e3d10a3fe, type: 2} + propertyPath: senteces.Array.data[1].timeInSeconds + value: 3 + objectReference: {fileID: 0} + - target: {fileID: 11467358, guid: 6b7e1aed9063c3f4aa87e93e3d10a3fe, type: 2} + propertyPath: senteces.Array.data[0].Hooker + value: + objectReference: {fileID: 1300205496} + - target: {fileID: 11467358, guid: 6b7e1aed9063c3f4aa87e93e3d10a3fe, type: 2} + propertyPath: senteces.Array.data[1].Hooker + value: + objectReference: {fileID: 1170495253} + - target: {fileID: 11467358, guid: 6b7e1aed9063c3f4aa87e93e3d10a3fe, type: 2} + propertyPath: senteces.Array.data[2].sentence + value: + objectReference: {fileID: 11400000, guid: 7ffe4ed9be5f19d4fbb84320cda2f3f5, + type: 2} + - target: {fileID: 11467358, guid: 6b7e1aed9063c3f4aa87e93e3d10a3fe, type: 2} + propertyPath: senteces.Array.data[2].Hooker + value: + objectReference: {fileID: 1300205496} + - target: {fileID: 11467358, guid: 6b7e1aed9063c3f4aa87e93e3d10a3fe, type: 2} + propertyPath: senteces.Array.data[2].timeInSeconds + value: 3 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 100100000, guid: 6b7e1aed9063c3f4aa87e93e3d10a3fe, type: 2} + m_IsPrefabParent: 0 +--- !u!1001 &1153315730 +Prefab: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 453238, guid: da6c3f2b32057634086650730829966f, type: 2} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 453238, guid: da6c3f2b32057634086650730829966f, type: 2} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 453238, guid: da6c3f2b32057634086650730829966f, type: 2} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 453238, guid: da6c3f2b32057634086650730829966f, type: 2} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 453238, guid: da6c3f2b32057634086650730829966f, type: 2} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 453238, guid: da6c3f2b32057634086650730829966f, type: 2} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 453238, guid: da6c3f2b32057634086650730829966f, type: 2} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 453238, guid: da6c3f2b32057634086650730829966f, type: 2} + propertyPath: m_RootOrder + value: 2 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 100100000, guid: da6c3f2b32057634086650730829966f, type: 2} + m_IsPrefabParent: 0 +--- !u!114 &1153315731 stripped +MonoBehaviour: + m_PrefabParentObject: {fileID: 11455098, guid: da6c3f2b32057634086650730829966f, + type: 2} + m_PrefabInternal: {fileID: 1153315730} + m_Script: {fileID: 11500000, guid: efdac04d20f5969468168145ae49cc1d, type: 3} +--- !u!4 &1170495253 stripped +Transform: + m_PrefabParentObject: {fileID: 453014, guid: 513460c9793a2244f99b593170803ee6, type: 2} + m_PrefabInternal: {fileID: 1830445944} +--- !u!4 &1300205496 stripped +Transform: + m_PrefabParentObject: {fileID: 453238, guid: da6c3f2b32057634086650730829966f, type: 2} + m_PrefabInternal: {fileID: 1153315730} +--- !u!1001 &1574300789 +Prefab: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 470012, guid: e0fb93d51bb4fbb4083ce887d7144154, type: 2} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 470012, guid: e0fb93d51bb4fbb4083ce887d7144154, type: 2} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 470012, guid: e0fb93d51bb4fbb4083ce887d7144154, type: 2} + propertyPath: m_LocalPosition.z + value: -10 + objectReference: {fileID: 0} + - target: {fileID: 470012, guid: e0fb93d51bb4fbb4083ce887d7144154, type: 2} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 470012, guid: e0fb93d51bb4fbb4083ce887d7144154, type: 2} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 470012, guid: e0fb93d51bb4fbb4083ce887d7144154, type: 2} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 470012, guid: e0fb93d51bb4fbb4083ce887d7144154, type: 2} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 470012, guid: e0fb93d51bb4fbb4083ce887d7144154, type: 2} + propertyPath: m_RootOrder + value: 3 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 100100000, guid: e0fb93d51bb4fbb4083ce887d7144154, type: 2} + m_IsPrefabParent: 0 +--- !u!1001 &1830445944 +Prefab: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 453014, guid: 513460c9793a2244f99b593170803ee6, type: 2} + propertyPath: m_LocalPosition.x + value: 4.62 + objectReference: {fileID: 0} + - target: {fileID: 453014, guid: 513460c9793a2244f99b593170803ee6, type: 2} + propertyPath: m_LocalPosition.y + value: 0.15 + objectReference: {fileID: 0} + - target: {fileID: 453014, guid: 513460c9793a2244f99b593170803ee6, type: 2} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 453014, guid: 513460c9793a2244f99b593170803ee6, type: 2} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 453014, guid: 513460c9793a2244f99b593170803ee6, type: 2} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 453014, guid: 513460c9793a2244f99b593170803ee6, type: 2} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 453014, guid: 513460c9793a2244f99b593170803ee6, type: 2} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 453014, guid: 513460c9793a2244f99b593170803ee6, type: 2} + propertyPath: m_RootOrder + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 21212648, guid: 513460c9793a2244f99b593170803ee6, type: 2} + propertyPath: m_FlipX + value: 0 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 100100000, guid: 513460c9793a2244f99b593170803ee6, type: 2} + m_IsPrefabParent: 0 +--- !u!114 &1830445945 stripped +MonoBehaviour: + m_PrefabParentObject: {fileID: 11475352, guid: 513460c9793a2244f99b593170803ee6, + type: 2} + m_PrefabInternal: {fileID: 1830445944} + m_Script: {fileID: 11500000, guid: 3b1a1a8bf2edeba4bb189878c796b7ea, type: 3} +--- !u!1001 &2012609075 +Prefab: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 414644, guid: be476e4369a222444933678e85b7a928, type: 2} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 414644, guid: be476e4369a222444933678e85b7a928, type: 2} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 414644, guid: be476e4369a222444933678e85b7a928, type: 2} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 414644, guid: be476e4369a222444933678e85b7a928, type: 2} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 414644, guid: be476e4369a222444933678e85b7a928, type: 2} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 414644, guid: be476e4369a222444933678e85b7a928, type: 2} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 414644, guid: be476e4369a222444933678e85b7a928, type: 2} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 414644, guid: be476e4369a222444933678e85b7a928, type: 2} + propertyPath: m_RootOrder + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 11405778, guid: be476e4369a222444933678e85b7a928, type: 2} + propertyPath: heroStrong + value: + objectReference: {fileID: 1830445945} + - target: {fileID: 11405778, guid: be476e4369a222444933678e85b7a928, type: 2} + propertyPath: heroFast + value: + objectReference: {fileID: 1153315731} + - target: {fileID: 8225758, guid: be476e4369a222444933678e85b7a928, type: 2} + propertyPath: panLevelCustomCurve.m_RotationOrder + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 8225758, guid: be476e4369a222444933678e85b7a928, type: 2} + propertyPath: reverbZoneMixCustomCurve.m_RotationOrder + value: 0 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 100100000, guid: be476e4369a222444933678e85b7a928, type: 2} + m_IsPrefabParent: 0 diff --git a/Assets/Scenes/TestScenes/ednaldomoreiraTest/Dialog1.unity.meta b/Assets/Scenes/TestScenes/ednaldomoreiraTest/Dialog1.unity.meta new file mode 100644 index 0000000..fe9c207 --- /dev/null +++ b/Assets/Scenes/TestScenes/ednaldomoreiraTest/Dialog1.unity.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: b1db4675543f7a44bbc7d078aeca8e71 +timeCreated: 1469119301 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Elements/Dialog/Balloon.cs b/Assets/Scripts/Elements/Dialog/Balloon.cs index 6b9d8b6..dabbb77 100644 --- a/Assets/Scripts/Elements/Dialog/Balloon.cs +++ b/Assets/Scripts/Elements/Dialog/Balloon.cs @@ -26,7 +26,12 @@ public class Balloon : MonoBehaviour { private Vector3 vertex1Triangle = new Vector3 (-0.3f, 0, 0); [SerializeField] private Vector3 vertex2Triangle = new Vector3 (0.2f, 0, 0); + [SerializeField] + private float SecondToInflate=0.5f; + private Renderer hookerRenderer=null; + private Coroutine animateBallonCoroutine=null; + void Update () { if (sentenceInfo != null) { @@ -43,6 +48,30 @@ void Update () } } + IEnumerator InflateBalloon(){ + Vector3 initialScale = transform.localScale; + Vector3 inflateScalePerSecond = new Vector3 (initialScale.x/SecondToInflate, initialScale.y/SecondToInflate, 0);; + float infX, infY, timeLeft=0; + transform.localScale = new Vector3 (0, 0, 0); + + while(timeLeft < SecondToInflate){ + if (transform.lossyScale.x < initialScale.x) + infX = inflateScalePerSecond.x*Time.deltaTime; + else + infX = 0;// transform.localScale.x - initialScale.x; + + if (transform.lossyScale.y < initialScale.y) + infY = inflateScalePerSecond.y*Time.deltaTime; + else + infY = 0;// transform.localScale.y - initialScale.y; + + transform.localScale = transform.localScale + new Vector3 (infX, infY, 0); + timeLeft+=Time.deltaTime; + yield return null; + } + + } + public void Init(Sentence.Info sentenceInfo, Callback callback){ this.sentenceInfo = sentenceInfo; this.callback = callback; @@ -62,7 +91,9 @@ public void Init(Sentence.Info sentenceInfo, Callback callback){ SetSpringJoint (); - Destroy(gameObject, sentenceInfo.timeInSeconds); + animateBallonCoroutine = StartCoroutine (InflateBalloon()); + + Destroy(gameObject, sentenceInfo.timeInSeconds + SecondToInflate); } private void SetCanvasSizeAndImages(){