diff --git a/Assets/Resources/audio/голосовой помощник/Файл доставлен.wav b/Assets/Resources/audio/голосовой помощник/Файл доставлен.wav new file mode 100644 index 0000000..a0e4a62 Binary files /dev/null and b/Assets/Resources/audio/голосовой помощник/Файл доставлен.wav differ diff --git a/Assets/Resources/audio/голосовой помощник/чтобы восстановить файл.wav b/Assets/Resources/audio/голосовой помощник/чтобы восстановить файл.wav new file mode 100644 index 0000000..d141015 Binary files /dev/null and b/Assets/Resources/audio/голосовой помощник/чтобы восстановить файл.wav differ diff --git a/Assets/Resources/audio/капитан/ваш корабль поврежден.wav b/Assets/Resources/audio/капитан/ваш корабль поврежден.wav new file mode 100644 index 0000000..a8624fe Binary files /dev/null and b/Assets/Resources/audio/капитан/ваш корабль поврежден.wav differ diff --git a/Assets/Resources/audio/капитан/молодец, ты открыл щиток.wav b/Assets/Resources/audio/капитан/молодец, ты открыл щиток.wav new file mode 100644 index 0000000..98a0c83 Binary files /dev/null and b/Assets/Resources/audio/капитан/молодец, ты открыл щиток.wav differ diff --git a/Assets/Resources/audio/капитан/пилот, мы приготовили тебе задание.wav b/Assets/Resources/audio/капитан/пилот, мы приготовили тебе задание.wav new file mode 100644 index 0000000..10393c4 Binary files /dev/null and b/Assets/Resources/audio/капитан/пилот, мы приготовили тебе задание.wav differ diff --git a/Assets/Resources/audio/капитан/подробности высланы.wav b/Assets/Resources/audio/капитан/подробности высланы.wav new file mode 100644 index 0000000..573d8b2 Binary files /dev/null and b/Assets/Resources/audio/капитан/подробности высланы.wav differ diff --git a/Assets/Resources/audio/капитан/поздравля, ты справился.wav b/Assets/Resources/audio/капитан/поздравля, ты справился.wav new file mode 100644 index 0000000..f147b86 Binary files /dev/null and b/Assets/Resources/audio/капитан/поздравля, ты справился.wav differ diff --git a/Assets/Resources/audio/капитан/ты на правильном пути.wav b/Assets/Resources/audio/капитан/ты на правильном пути.wav new file mode 100644 index 0000000..73d8551 Binary files /dev/null and b/Assets/Resources/audio/капитан/ты на правильном пути.wav differ diff --git a/Assets/Resources/audio/капитан/устрани неисправности.wav b/Assets/Resources/audio/капитан/устрани неисправности.wav new file mode 100644 index 0000000..4f0f9d6 Binary files /dev/null and b/Assets/Resources/audio/капитан/устрани неисправности.wav differ diff --git a/Assets/Resources/audio/пилот/Вот мы у двигателя.wav b/Assets/Resources/audio/пилот/Вот мы у двигателя.wav new file mode 100644 index 0000000..dd22ca6 Binary files /dev/null and b/Assets/Resources/audio/пилот/Вот мы у двигателя.wav differ diff --git a/Assets/Resources/audio/пилот/Здесь указано куда идти.wav b/Assets/Resources/audio/пилот/Здесь указано куда идти.wav new file mode 100644 index 0000000..b8b067e Binary files /dev/null and b/Assets/Resources/audio/пилот/Здесь указано куда идти.wav differ diff --git a/Assets/Resources/audio/пилот/Надо срочно действовать.wav b/Assets/Resources/audio/пилот/Надо срочно действовать.wav new file mode 100644 index 0000000..71b5fa5 Binary files /dev/null and b/Assets/Resources/audio/пилот/Надо срочно действовать.wav differ diff --git a/Assets/Resources/audio/пилот/О мы нашли фонарь.wav b/Assets/Resources/audio/пилот/О мы нашли фонарь.wav new file mode 100644 index 0000000..4d4f03c Binary files /dev/null and b/Assets/Resources/audio/пилот/О мы нашли фонарь.wav differ diff --git a/Assets/Resources/audio/пилот/О, вот и кусок карты.wav b/Assets/Resources/audio/пилот/О, вот и кусок карты.wav new file mode 100644 index 0000000..85b7fe1 Binary files /dev/null and b/Assets/Resources/audio/пилот/О, вот и кусок карты.wav differ diff --git a/Assets/Resources/audio/пилот/О, кажется я нашел кусок файла.wav b/Assets/Resources/audio/пилот/О, кажется я нашел кусок файла.wav new file mode 100644 index 0000000..f120b5f Binary files /dev/null and b/Assets/Resources/audio/пилот/О, кажется я нашел кусок файла.wav differ diff --git a/Assets/Resources/audio/пилот/Отлично, давай посмотрим карту.wav b/Assets/Resources/audio/пилот/Отлично, давай посмотрим карту.wav new file mode 100644 index 0000000..19f644a Binary files /dev/null and b/Assets/Resources/audio/пилот/Отлично, давай посмотрим карту.wav differ diff --git a/Assets/Resources/audio/пилот/Смотри, теперь мы можем видеть, где поломка у корабля.wav b/Assets/Resources/audio/пилот/Смотри, теперь мы можем видеть, где поломка у корабля.wav new file mode 100644 index 0000000..a4d1aa8 Binary files /dev/null and b/Assets/Resources/audio/пилот/Смотри, теперь мы можем видеть, где поломка у корабля.wav differ diff --git a/Assets/Resources/audio/пилот/Точно это двигательный отсек.wav b/Assets/Resources/audio/пилот/Точно это двигательный отсек.wav new file mode 100644 index 0000000..a046cf0 Binary files /dev/null and b/Assets/Resources/audio/пилот/Точно это двигательный отсек.wav differ diff --git a/Assets/Resources/audio/пилот/Я совсем забыл, я же не знаю где поломка.wav b/Assets/Resources/audio/пилот/Я совсем забыл, я же не знаю где поломка.wav new file mode 100644 index 0000000..cbf46f3 Binary files /dev/null and b/Assets/Resources/audio/пилот/Я совсем забыл, я же не знаю где поломка.wav differ diff --git a/Assets/Resources/audio/пилот/в этот раз файл поврежден очень сильно.wav b/Assets/Resources/audio/пилот/в этот раз файл поврежден очень сильно.wav new file mode 100644 index 0000000..5737ddf Binary files /dev/null and b/Assets/Resources/audio/пилот/в этот раз файл поврежден очень сильно.wav differ diff --git a/Assets/Resources/audio/пилот/для этого мне нужна карта корабля.wav b/Assets/Resources/audio/пилот/для этого мне нужна карта корабля.wav new file mode 100644 index 0000000..150dac9 Binary files /dev/null and b/Assets/Resources/audio/пилот/для этого мне нужна карта корабля.wav differ diff --git a/Assets/Resources/audio/пилот/есть.wav b/Assets/Resources/audio/пилот/есть.wav new file mode 100644 index 0000000..5d5ba25 Binary files /dev/null and b/Assets/Resources/audio/пилот/есть.wav differ diff --git a/Assets/Resources/audio/пилот/жду подробностей повреждения.wav b/Assets/Resources/audio/пилот/жду подробностей повреждения.wav new file mode 100644 index 0000000..4c8c05f Binary files /dev/null and b/Assets/Resources/audio/пилот/жду подробностей повреждения.wav differ diff --git a/Assets/Resources/audio/пилот/какое задание.wav b/Assets/Resources/audio/пилот/какое задание.wav new file mode 100644 index 0000000..d7bf9d3 Binary files /dev/null and b/Assets/Resources/audio/пилот/какое задание.wav differ diff --git a/Assets/Resources/audio/пилот/мм, что это за ящик.wav b/Assets/Resources/audio/пилот/мм, что это за ящик.wav new file mode 100644 index 0000000..402f3de Binary files /dev/null and b/Assets/Resources/audio/пилот/мм, что это за ящик.wav differ diff --git a/Assets/Resources/audio/пилот/наконец-то я пришел к двигателю.wav b/Assets/Resources/audio/пилот/наконец-то я пришел к двигателю.wav new file mode 100644 index 0000000..1bb46da Binary files /dev/null and b/Assets/Resources/audio/пилот/наконец-то я пришел к двигателю.wav differ diff --git a/Assets/Resources/audio/пилот/о нет, у нас совсем мало времени.wav b/Assets/Resources/audio/пилот/о нет, у нас совсем мало времени.wav new file mode 100644 index 0000000..785a57e Binary files /dev/null and b/Assets/Resources/audio/пилот/о нет, у нас совсем мало времени.wav differ diff --git a/Assets/Resources/audio/пилот/о черт, опять этот баг.wav b/Assets/Resources/audio/пилот/о черт, опять этот баг.wav new file mode 100644 index 0000000..53d39c8 Binary files /dev/null and b/Assets/Resources/audio/пилот/о черт, опять этот баг.wav differ diff --git a/Assets/Resources/audio/пилот/сделай анализ утечек.wav b/Assets/Resources/audio/пилот/сделай анализ утечек.wav new file mode 100644 index 0000000..349beac Binary files /dev/null and b/Assets/Resources/audio/пилот/сделай анализ утечек.wav differ diff --git a/Assets/Resources/audio/пилот/спасибо, кэп.wav b/Assets/Resources/audio/пилот/спасибо, кэп.wav new file mode 100644 index 0000000..e534f22 Binary files /dev/null and b/Assets/Resources/audio/пилот/спасибо, кэп.wav differ diff --git a/Assets/Resources/audio/пилот/таак, где же тут фонарик.wav b/Assets/Resources/audio/пилот/таак, где же тут фонарик.wav new file mode 100644 index 0000000..1ba6e5e Binary files /dev/null and b/Assets/Resources/audio/пилот/таак, где же тут фонарик.wav differ diff --git a/Assets/Resources/audio/пилот/тут как раз есть ключ, надо его взять.wav b/Assets/Resources/audio/пилот/тут как раз есть ключ, надо его взять.wav new file mode 100644 index 0000000..a0c454e Binary files /dev/null and b/Assets/Resources/audio/пилот/тут как раз есть ключ, надо его взять.wav differ diff --git a/Assets/Resources/audio/пилот/фух, получилось.wav b/Assets/Resources/audio/пилот/фух, получилось.wav new file mode 100644 index 0000000..9b296a2 Binary files /dev/null and b/Assets/Resources/audio/пилот/фух, получилось.wav differ diff --git a/Assets/Scenes/DialogSystemTest.unity b/Assets/Scenes/DialogSystemTest.unity new file mode 100644 index 0000000..6970936 --- /dev/null +++ b/Assets/Scenes/DialogSystemTest.unity @@ -0,0 +1,624 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!29 &1 +OcclusionCullingSettings: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_OcclusionBakeSettings: + smallestOccluder: 5 + smallestHole: 0.25 + backfaceThreshold: 100 + m_SceneGUID: 00000000000000000000000000000000 + m_OcclusionCullingData: {fileID: 0} +--- !u!104 &2 +RenderSettings: + m_ObjectHideFlags: 0 + serializedVersion: 9 + 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: 0 + m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} + m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 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} + m_IndirectSpecularColor: {r: 0.44657898, g: 0.4964133, b: 0.5748178, a: 1} + m_UseRadianceAmbientProbe: 0 +--- !u!157 &3 +LightmapSettings: + m_ObjectHideFlags: 0 + serializedVersion: 12 + m_GIWorkflowMode: 1 + m_GISettings: + serializedVersion: 2 + m_BounceScale: 1 + m_IndirectOutputScale: 1 + m_AlbedoBoost: 1 + m_EnvironmentLightingMode: 0 + m_EnableBakedLightmaps: 1 + m_EnableRealtimeLightmaps: 0 + m_LightmapEditorSettings: + serializedVersion: 12 + m_Resolution: 2 + m_BakeResolution: 40 + m_AtlasSize: 1024 + m_AO: 0 + m_AOMaxDistance: 1 + m_CompAOExponent: 1 + m_CompAOExponentDirect: 0 + m_ExtractAmbientOcclusion: 0 + m_Padding: 2 + m_LightmapParameters: {fileID: 0} + m_LightmapsBakeMode: 1 + m_TextureCompression: 1 + m_FinalGather: 0 + m_FinalGatherFiltering: 1 + m_FinalGatherRayCount: 256 + m_ReflectionCompression: 2 + m_MixedBakeMode: 2 + m_BakeBackend: 1 + m_PVRSampling: 1 + m_PVRDirectSampleCount: 32 + m_PVRSampleCount: 512 + m_PVRBounces: 2 + m_PVREnvironmentSampleCount: 256 + m_PVREnvironmentReferencePointCount: 2048 + m_PVRFilteringMode: 1 + m_PVRDenoiserTypeDirect: 1 + m_PVRDenoiserTypeIndirect: 1 + m_PVRDenoiserTypeAO: 1 + m_PVRFilterTypeDirect: 0 + m_PVRFilterTypeIndirect: 0 + m_PVRFilterTypeAO: 0 + m_PVREnvironmentMIS: 1 + m_PVRCulling: 1 + m_PVRFilteringGaussRadiusDirect: 1 + m_PVRFilteringGaussRadiusIndirect: 5 + m_PVRFilteringGaussRadiusAO: 2 + m_PVRFilteringAtrousPositionSigmaDirect: 0.5 + m_PVRFilteringAtrousPositionSigmaIndirect: 2 + m_PVRFilteringAtrousPositionSigmaAO: 1 + m_ExportTrainingData: 0 + m_TrainingDataDestination: TrainingData + m_LightProbeSampleCountMultiplier: 4 + m_LightingDataAsset: {fileID: 0} + m_LightingSettings: {fileID: 0} +--- !u!196 &4 +NavMeshSettings: + serializedVersion: 2 + m_ObjectHideFlags: 0 + m_BuildSettings: + serializedVersion: 2 + agentTypeID: 0 + agentRadius: 0.5 + agentHeight: 2 + agentSlope: 45 + agentClimb: 0.4 + ledgeDropHeight: 0 + maxJumpAcrossDistance: 0 + minRegionArea: 2 + manualCellSize: 0 + cellSize: 0.16666667 + manualTileSize: 0 + tileSize: 256 + accuratePlacement: 0 + maxJobWorkers: 0 + preserveTilesOutsideBounds: 0 + debug: + m_Flags: 0 + m_NavMeshData: {fileID: 0} +--- !u!1 &4947441 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 4947443} + - component: {fileID: 4947442} + m_Layer: 0 + m_Name: Directional Light + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!108 &4947442 +Light: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4947441} + m_Enabled: 1 + serializedVersion: 10 + m_Type: 1 + m_Shape: 0 + m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} + m_Intensity: 1 + m_Range: 10 + m_SpotAngle: 30 + m_InnerSpotAngle: 21.80208 + m_CookieSize: 10 + m_Shadows: + m_Type: 2 + m_Resolution: -1 + m_CustomResolution: -1 + m_Strength: 1 + m_Bias: 0.05 + m_NormalBias: 0.4 + m_NearPlane: 0.2 + m_CullingMatrixOverride: + e00: 1 + e01: 0 + e02: 0 + e03: 0 + e10: 0 + e11: 1 + e12: 0 + e13: 0 + e20: 0 + e21: 0 + e22: 1 + e23: 0 + e30: 0 + e31: 0 + e32: 0 + e33: 1 + m_UseCullingMatrixOverride: 0 + m_Cookie: {fileID: 0} + m_DrawHalo: 0 + m_Flare: {fileID: 0} + m_RenderMode: 0 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_RenderingLayerMask: 1 + m_Lightmapping: 4 + m_LightShadowCasterMode: 0 + m_AreaSize: {x: 1, y: 1} + m_BounceIntensity: 1 + m_ColorTemperature: 6570 + m_UseColorTemperature: 0 + m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0} + m_UseBoundingSphereOverride: 0 + m_UseViewFrustumForShadowCasterCull: 1 + m_ShadowRadius: 0 + m_ShadowAngle: 0 +--- !u!4 &4947443 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4947441} + m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} + m_LocalPosition: {x: 0, y: 3, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} +--- !u!223 &184850029 stripped +Canvas: + m_CorrespondingSourceObject: {fileID: 5912114814553077733, guid: 88023f41040889540a768e767f764802, type: 3} + m_PrefabInstance: {fileID: 5300698903377733204} + m_PrefabAsset: {fileID: 0} +--- !u!1 &187892499 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 187892502} + - component: {fileID: 187892501} + - component: {fileID: 187892500} + - component: {fileID: 187892503} + - component: {fileID: 187892506} + - component: {fileID: 187892505} + - component: {fileID: 187892504} + m_Layer: 0 + m_Name: Main Camera + m_TagString: MainCamera + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!81 &187892500 +AudioListener: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 187892499} + m_Enabled: 1 +--- !u!20 &187892501 +Camera: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 187892499} + m_Enabled: 1 + serializedVersion: 2 + m_ClearFlags: 1 + m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} + m_projectionMatrixMode: 1 + m_GateFitMode: 2 + m_FOVAxisMode: 0 + m_SensorSize: {x: 36, y: 24} + m_LensShift: {x: 0, y: 0} + m_FocalLength: 50 + m_NormalizedViewPortRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + near clip plane: 0.3 + far clip plane: 1000 + field of view: 60 + orthographic: 0 + orthographic size: 5 + m_Depth: -1 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_RenderingPath: -1 + m_TargetTexture: {fileID: 0} + m_TargetDisplay: 0 + m_TargetEye: 3 + m_HDR: 1 + m_AllowMSAA: 1 + m_AllowDynamicResolution: 0 + m_ForceIntoRT: 0 + m_OcclusionCulling: 1 + m_StereoConvergence: 10 + m_StereoSeparation: 0.022 +--- !u!4 &187892502 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 187892499} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 1, z: -10} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!82 &187892503 +AudioSource: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 187892499} + m_Enabled: 1 + serializedVersion: 4 + OutputAudioMixerGroup: {fileID: 0} + m_audioClip: {fileID: 0} + m_PlayOnAwake: 1 + m_Volume: 1 + m_Pitch: 1 + Loop: 0 + Mute: 0 + Spatialize: 0 + SpatializePostEffects: 0 + Priority: 128 + DopplerLevel: 1 + MinDistance: 1 + MaxDistance: 500 + Pan2D: 0 + rolloffMode: 0 + BypassEffects: 0 + BypassListenerEffects: 0 + BypassReverbZones: 0 + rolloffCustomCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + panLevelCustomCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + spreadCustomCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + reverbZoneMixCustomCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 +--- !u!114 &187892504 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 187892499} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: b978931a400d89f43ae64dc52b44da92, type: 3} + m_Name: + m_EditorClassIdentifier: + _audioPlayer: {fileID: 187892505} + _audioVisualizer: {fileID: 187892506} +--- !u!114 &187892505 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 187892499} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 9b07eea804daaf34c82c90e97894d546, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!114 &187892506 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 187892499} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: ab0d44d772833f14ebb91e4f233d7612, type: 3} + m_Name: + m_EditorClassIdentifier: + _canvasOverlay: {fileID: 184850029} +--- !u!1 &1427185412 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1427185415} + - component: {fileID: 1427185414} + - component: {fileID: 1427185413} + m_Layer: 0 + m_Name: EventSystem + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &1427185413 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1427185412} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 4f231c4fb786f3946a6b90b886c48677, type: 3} + m_Name: + m_EditorClassIdentifier: + m_HorizontalAxis: Horizontal + m_VerticalAxis: Vertical + m_SubmitButton: Submit + m_CancelButton: Cancel + m_InputActionsPerSecond: 10 + m_RepeatDelay: 0.5 + m_ForceModuleActive: 0 +--- !u!114 &1427185414 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1427185412} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 76c392e42b5098c458856cdf6ecaaaa1, type: 3} + m_Name: + m_EditorClassIdentifier: + m_FirstSelected: {fileID: 0} + m_sendNavigationEvents: 1 + m_DragThreshold: 10 +--- !u!4 &1427185415 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1427185412} + 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 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1001 &5300698903377733204 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 2148957336611936570, guid: 88023f41040889540a768e767f764802, type: 3} + propertyPath: m_TagString + value: dialog_name + objectReference: {fileID: 0} + - target: {fileID: 3325112468942497453, guid: 88023f41040889540a768e767f764802, type: 3} + propertyPath: m_TagString + value: dialog_content + objectReference: {fileID: 0} + - target: {fileID: 4160254509032735793, guid: 88023f41040889540a768e767f764802, type: 3} + propertyPath: m_Name + value: DialogUI + objectReference: {fileID: 0} + - target: {fileID: 4160254509032735793, guid: 88023f41040889540a768e767f764802, type: 3} + propertyPath: m_TagString + value: dialog_canvas + objectReference: {fileID: 0} + - target: {fileID: 4538792827991390899, guid: 88023f41040889540a768e767f764802, type: 3} + propertyPath: m_TagString + value: Untagged + objectReference: {fileID: 0} + - target: {fileID: 8388759118598599283, guid: 88023f41040889540a768e767f764802, type: 3} + propertyPath: m_Pivot.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 8388759118598599283, guid: 88023f41040889540a768e767f764802, type: 3} + propertyPath: m_Pivot.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 8388759118598599283, guid: 88023f41040889540a768e767f764802, type: 3} + propertyPath: m_RootOrder + value: 2 + objectReference: {fileID: 0} + - target: {fileID: 8388759118598599283, guid: 88023f41040889540a768e767f764802, type: 3} + propertyPath: m_AnchorMax.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 8388759118598599283, guid: 88023f41040889540a768e767f764802, type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 8388759118598599283, guid: 88023f41040889540a768e767f764802, type: 3} + propertyPath: m_AnchorMin.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 8388759118598599283, guid: 88023f41040889540a768e767f764802, type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 8388759118598599283, guid: 88023f41040889540a768e767f764802, type: 3} + propertyPath: m_SizeDelta.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 8388759118598599283, guid: 88023f41040889540a768e767f764802, type: 3} + propertyPath: m_SizeDelta.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 8388759118598599283, guid: 88023f41040889540a768e767f764802, type: 3} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 8388759118598599283, guid: 88023f41040889540a768e767f764802, type: 3} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 8388759118598599283, guid: 88023f41040889540a768e767f764802, type: 3} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 8388759118598599283, guid: 88023f41040889540a768e767f764802, type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 8388759118598599283, guid: 88023f41040889540a768e767f764802, type: 3} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 8388759118598599283, guid: 88023f41040889540a768e767f764802, type: 3} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 8388759118598599283, guid: 88023f41040889540a768e767f764802, type: 3} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 8388759118598599283, guid: 88023f41040889540a768e767f764802, type: 3} + propertyPath: m_AnchoredPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 8388759118598599283, guid: 88023f41040889540a768e767f764802, type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 8388759118598599283, guid: 88023f41040889540a768e767f764802, type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 8388759118598599283, guid: 88023f41040889540a768e767f764802, type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 8388759118598599283, guid: 88023f41040889540a768e767f764802, type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: 88023f41040889540a768e767f764802, type: 3} diff --git a/Assets/images/dialog/dialog_content.png b/Assets/images/dialog/dialog_content.png new file mode 100644 index 0000000..a064f88 Binary files /dev/null and b/Assets/images/dialog/dialog_content.png differ diff --git a/Assets/prefabs/Dialog/DialogUI.prefab b/Assets/prefabs/Dialog/DialogUI.prefab new file mode 100644 index 0000000..c6c9da2 --- /dev/null +++ b/Assets/prefabs/Dialog/DialogUI.prefab @@ -0,0 +1,421 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &2148957336611936570 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 9112206826089487017} + - component: {fileID: 7215917385591579542} + - component: {fileID: 2746573403664199373} + m_Layer: 5 + m_Name: Name + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &9112206826089487017 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2148957336611936570} + 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: 8388759118598599283} + m_RootOrder: 2 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.5, y: 0} + m_AnchorMax: {x: 0.5, y: 0} + m_AnchoredPosition: {x: 52.06, y: 300} + m_SizeDelta: {x: 637.4183, y: 80.0195} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!222 &7215917385591579542 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2148957336611936570} + m_CullTransparentMesh: 1 +--- !u!114 &2746573403664199373 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2148957336611936570} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, 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_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_FontData: + m_Font: {fileID: 12800000, guid: be643c0c6aa10b54f849c7fa2b29a222, type: 3} + m_FontSize: 45 + m_FontStyle: 0 + m_BestFit: 0 + m_MinSize: 3 + m_MaxSize: 47 + m_Alignment: 0 + m_AlignByGeometry: 0 + m_RichText: 1 + m_HorizontalOverflow: 0 + m_VerticalOverflow: 0 + m_LineSpacing: 1 + m_Text: "\u041A\u0430\u043F\u0438\u0442\u0430\u043D" +--- !u!1 &3325112468942497453 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1553775445117852721} + - component: {fileID: 9059636127954740570} + - component: {fileID: 7275707779469296087} + m_Layer: 5 + m_Name: ContentText + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1553775445117852721 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3325112468942497453} + 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: 8388759118598599283} + m_RootOrder: 3 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.5, y: 0} + m_AnchorMax: {x: 0.5, y: 0} + m_AnchoredPosition: {x: -6.5564, y: 137.56061} + m_SizeDelta: {x: 805.4304, y: 190.8788} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!222 &9059636127954740570 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3325112468942497453} + m_CullTransparentMesh: 1 +--- !u!114 &7275707779469296087 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3325112468942497453} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, 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_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_FontData: + m_Font: {fileID: 12800000, guid: 80b0022f819bfb64c92e6c29dabac2ab, type: 3} + m_FontSize: 31 + m_FontStyle: 0 + m_BestFit: 0 + m_MinSize: 10 + m_MaxSize: 43 + m_Alignment: 0 + m_AlignByGeometry: 0 + m_RichText: 1 + m_HorizontalOverflow: 0 + m_VerticalOverflow: 0 + m_LineSpacing: 1 + m_Text: "\u0422\u0435\u0441\u0442 \u0447\u0438\u0442\u043A\u0438 \u043D\u043E\u0440\u043C\u0430\u043B\u044C\u043D\u043E\u0444\u044B + \u0444\u044B\u0432\u0430\u043B\u0434\u043E\u0444\u044B\u0434\u0432\u043B \u043E\u0444\u044B\u0436\u0434\u0432\u0430\u043B\u043E + \u0444\u044B\u0434\u0432\u043B\u0430\u043E \u0444\u044B\u0434\u0432\u043B\u0430\u043E + \u0444\u044B\u0434\u0432\u043B\u0430\u043E \u0444\u044B\u0432\u0434\u0430\u043B\u043E\u0444\u044B\u0432\u0434\u0430\u043B\u043E + \u0444\u044B\u0434\u043B \u0444\u044B\u0434\u0432\u043B \u044B\u0434\u0432\u0430\u043E + \u0444\u044B\u0434\u043B \u044B\u0434\u043B\u0432\u0430 \u044B\u0432\u0434\u043B\u0430\u043E + \u043B\u0444\u044B\u0434\u0432\u043B \u0434\u0444\u043B\u044B\u043E\u0432\u0430 + \u0434\u0444\u043B\u044B \u0434\u0444\u044B\u043B\u0432\u043E\u0430\u0444\u044B\u0434\u043B + \u044B\u0434\u0432\u0430\u043B \u044B\u0432\u043B\u0430 " +--- !u!1 &4160254509032735793 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 8388759118598599283} + - component: {fileID: 5912114814553077733} + - component: {fileID: 204074954779795412} + - component: {fileID: 2405692334095882808} + m_Layer: 5 + m_Name: DialogUI + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &8388759118598599283 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4160254509032735793} + 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: 4121117609092239397} + - {fileID: 3183244070165449023} + - {fileID: 9112206826089487017} + - {fileID: 1553775445117852721} + m_Father: {fileID: 0} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 0} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0, y: 0} +--- !u!223 &5912114814553077733 +Canvas: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4160254509032735793} + m_Enabled: 1 + serializedVersion: 3 + 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_AdditionalShaderChannelsFlag: 0 + m_SortingLayerID: 0 + m_SortingOrder: 0 + m_TargetDisplay: 0 +--- !u!114 &204074954779795412 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4160254509032735793} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, 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 + m_PresetInfoIsWorld: 0 +--- !u!114 &2405692334095882808 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4160254509032735793} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: dc42784cf147c0c48a680349fa168899, type: 3} + m_Name: + m_EditorClassIdentifier: + m_IgnoreReversedGraphics: 1 + m_BlockingObjects: 0 + m_BlockingMask: + serializedVersion: 2 + m_Bits: 4294967295 +--- !u!1 &4457176822624763141 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 3183244070165449023} + - component: {fileID: 2792070466686428044} + - component: {fileID: 2873544539721324858} + m_Layer: 5 + m_Name: Avatar + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &3183244070165449023 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4457176822624763141} + 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: 8388759118598599283} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 0} + m_AnchoredPosition: {x: 125, y: 373} + m_SizeDelta: {x: 250, y: 250} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!222 &2792070466686428044 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4457176822624763141} + m_CullTransparentMesh: 1 +--- !u!114 &2873544539721324858 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4457176822624763141} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 21300000, guid: 0896d803db433ce46bb149f8d5980224, type: 3} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!1 &4538792827991390899 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 4121117609092239397} + - component: {fileID: 3019473210205336718} + - component: {fileID: 3975797634080714202} + m_Layer: 5 + m_Name: Content + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &4121117609092239397 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4538792827991390899} + 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: 8388759118598599283} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.5, y: 0} + m_AnchorMax: {x: 0.5, y: 0} + m_AnchoredPosition: {x: 0, y: 187.90002} + m_SizeDelta: {x: 1000.2, y: 375.8} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!222 &3019473210205336718 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4538792827991390899} + m_CullTransparentMesh: 1 +--- !u!114 &3975797634080714202 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4538792827991390899} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 21300000, guid: 7d5fed89373a0dc4abd206e2f414ffed, type: 3} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 diff --git a/Assets/scripts/dialogSystem/AudioPlayer.cs b/Assets/scripts/dialogSystem/AudioPlayer.cs new file mode 100644 index 0000000..9e7002a --- /dev/null +++ b/Assets/scripts/dialogSystem/AudioPlayer.cs @@ -0,0 +1,34 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class AudioPlayer : MonoBehaviour +{ + public delegate void AudioPlayerStopsCommit(); + private AudioSource _audioPlayer; + private List _stopsCommits; + void Awake() + { + Debug.Log("shit"); + _audioPlayer = gameObject.GetComponent(); + _stopsCommits = new List(); + } + + public void addStopListener(AudioPlayerStopsCommit stopCommit) { + _stopsCommits.Add(stopCommit); + } + + public void PlayAudio(AudioClip audio) { + _audioPlayer.clip = audio; + _audioPlayer.Play(); + } + + void Update() { + if (!_audioPlayer.isPlaying) { + for (int i = 0; i < _stopsCommits.Count; ++i) { + _stopsCommits[i](); + } + _stopsCommits = new List(); + } + } +} diff --git a/Assets/scripts/dialogSystem/AudioVisualizer.cs b/Assets/scripts/dialogSystem/AudioVisualizer.cs new file mode 100644 index 0000000..ca10048 --- /dev/null +++ b/Assets/scripts/dialogSystem/AudioVisualizer.cs @@ -0,0 +1,43 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +using UnityEngine.UI; + +public class AudioVisualizer : MonoBehaviour +{ + public class AudioVisualizerData{ + public string _text; + public Roles _role; + public AudioVisualizerData(string text, Roles role) { + _text = text; + _role = role; + } + } + private AudioVisualizerData data; + + [SerializeField] + private Canvas _canvasOverlay; + private AudioVisualizerData _visualizerData; + + void Start() { + if (GameObject.FindGameObjectsWithTag("dialog_canvas").Length == 0) { + Instantiate(_canvasOverlay, Vector3.zero, Quaternion.identity); + } + } + public void changeAudioVisualizerData(AudioVisualizerData visualizerData) { + Text content = GameObject.FindGameObjectWithTag("dialog_content").GetComponent(); + content.text = visualizerData._text; + Text name = GameObject.FindGameObjectWithTag("dialog_name").GetComponent(); + switch (visualizerData._role) { + case Roles.CAPTAIN: + name.text = "Капитан"; + break; + case Roles.PILOT: + name.text = "Пилот"; + break; + case Roles.VOICE_ASSISTANT: + name.text = "Голосовой помощник"; + break; + } + } +} diff --git a/Assets/scripts/dialogSystem/DialogPlayer.cs b/Assets/scripts/dialogSystem/DialogPlayer.cs new file mode 100644 index 0000000..c95ce96 --- /dev/null +++ b/Assets/scripts/dialogSystem/DialogPlayer.cs @@ -0,0 +1,51 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +//todo: make scenes and access to dialog player via it +[RequireComponent(typeof(AudioPlayer))] +[RequireComponent(typeof(AudioVisualizer))] +public class DialogPlayer : MonoBehaviour +{ + [SerializeField] + AudioPlayer _audioPlayer; + [SerializeField] + AudioVisualizer _audioVisualizer; + private AudioClip _audio; + void Start() + { + _audio = Resources.Load("audio/пилот/есть"); + Replica another_rep = new Replica( + _audio, + new AudioVisualizer.AudioVisualizerData( + "asdfsadf", + role: Roles.PILOT + ), + _audioPlayer, + + () => { + Debug.Log("fuck"); + }, + _audioVisualizer + ); + Replica rep = new Replica( + _audio, + new AudioVisualizer.AudioVisualizerData( + "Есть", + role: Roles.PILOT + ), + _audioPlayer, + + () => { + another_rep.Play(); + }, + _audioVisualizer + ); + rep.Play(); + } + + // Update is called once per frame + void Update() + { + + } +} diff --git a/Assets/scripts/dialogSystem/Replica.cs b/Assets/scripts/dialogSystem/Replica.cs new file mode 100644 index 0000000..0ef3fd4 --- /dev/null +++ b/Assets/scripts/dialogSystem/Replica.cs @@ -0,0 +1,27 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class Replica { + private AudioClip _clip; + private AudioVisualizer.AudioVisualizerData _visualizerData; + private AudioPlayer.AudioPlayerStopsCommit _onStop; + private AudioPlayer _audioPlayer; + private AudioVisualizer _audioVisualizer; + + public Replica(AudioClip clip, AudioVisualizer.AudioVisualizerData visualizerData, AudioPlayer audioPlayer, AudioPlayer.AudioPlayerStopsCommit onStop, AudioVisualizer audioVisualizer) { + _clip = clip; + _audioPlayer = audioPlayer; + _onStop = onStop; + _audioVisualizer = audioVisualizer; + _visualizerData = visualizerData; + } + + + public void Play() { + _audioPlayer.PlayAudio(_clip); + _audioPlayer.addStopListener(_onStop); + _audioVisualizer.changeAudioVisualizerData(_visualizerData); + } +} + diff --git a/Assets/scripts/dialogSystem/Roles.cs b/Assets/scripts/dialogSystem/Roles.cs new file mode 100644 index 0000000..ed85866 --- /dev/null +++ b/Assets/scripts/dialogSystem/Roles.cs @@ -0,0 +1,9 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public enum Roles { + PILOT, + VOICE_ASSISTANT, + CAPTAIN +} \ No newline at end of file diff --git a/ProjectSettings/TagManager.asset b/ProjectSettings/TagManager.asset index 1c92a78..5bc670f 100644 --- a/ProjectSettings/TagManager.asset +++ b/ProjectSettings/TagManager.asset @@ -3,7 +3,10 @@ --- !u!78 &1 TagManager: serializedVersion: 2 - tags: [] + tags: + - dialog_content + - dialog_name + - dialog_canvas layers: - Default - TransparentFX