Compare commits
14 Commits
VerticalBi
...
DataTransf
| Author | SHA1 | Date | |
|---|---|---|---|
| 280002cdbf | |||
| 61f39d9af1 | |||
| b2c77e1c7f | |||
| 3c885df783 | |||
| bca7c930c2 | |||
| 375ccaf4f7 | |||
| 050e58e73c | |||
| 6a7314ff4e | |||
| 72a75c121a | |||
| 677c875c58 | |||
| a0a675676d | |||
| 11575ef9b1 | |||
| 76a38d741c | |||
| 9defaa314a |
490
Assets/1.unity
Normal file
490
Assets/1.unity
Normal file
@@ -0,0 +1,490 @@
|
|||||||
|
%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: 10
|
||||||
|
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_UseRadianceAmbientProbe: 0
|
||||||
|
--- !u!157 &3
|
||||||
|
LightmapSettings:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 13
|
||||||
|
m_BakeOnSceneLoad: 0
|
||||||
|
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_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: 1
|
||||||
|
m_PVRFilteringGaussRadiusAO: 1
|
||||||
|
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
|
||||||
|
m_PVRFilteringAtrousPositionSigmaIndirect: 2
|
||||||
|
m_PVRFilteringAtrousPositionSigmaAO: 1
|
||||||
|
m_ExportTrainingData: 0
|
||||||
|
m_TrainingDataDestination: TrainingData
|
||||||
|
m_LightProbeSampleCountMultiplier: 4
|
||||||
|
m_LightingDataAsset: {fileID: 20201, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_LightingSettings: {fileID: 0}
|
||||||
|
--- !u!196 &4
|
||||||
|
NavMeshSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_BuildSettings:
|
||||||
|
serializedVersion: 3
|
||||||
|
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
|
||||||
|
buildHeightMesh: 0
|
||||||
|
maxJobWorkers: 0
|
||||||
|
preserveTilesOutsideBounds: 0
|
||||||
|
debug:
|
||||||
|
m_Flags: 0
|
||||||
|
m_NavMeshData: {fileID: 0}
|
||||||
|
--- !u!1001 &147052287
|
||||||
|
PrefabInstance:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Modification:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TransformParent: {fileID: 0}
|
||||||
|
m_Modifications:
|
||||||
|
- target: {fileID: 3482803472994744189, guid: 88289d3d214349c418f4309a8f66557f, type: 3}
|
||||||
|
propertyPath: m_Name
|
||||||
|
value: Eda
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 4606145862438615571, guid: 88289d3d214349c418f4309a8f66557f, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.x
|
||||||
|
value: -1.42
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 4606145862438615571, guid: 88289d3d214349c418f4309a8f66557f, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.y
|
||||||
|
value: 0.5
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 4606145862438615571, guid: 88289d3d214349c418f4309a8f66557f, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.z
|
||||||
|
value: 1.04
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 4606145862438615571, guid: 88289d3d214349c418f4309a8f66557f, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.w
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 4606145862438615571, guid: 88289d3d214349c418f4309a8f66557f, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 4606145862438615571, guid: 88289d3d214349c418f4309a8f66557f, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 4606145862438615571, guid: 88289d3d214349c418f4309a8f66557f, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 4606145862438615571, guid: 88289d3d214349c418f4309a8f66557f, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 4606145862438615571, guid: 88289d3d214349c418f4309a8f66557f, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 4606145862438615571, guid: 88289d3d214349c418f4309a8f66557f, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
m_RemovedComponents: []
|
||||||
|
m_RemovedGameObjects: []
|
||||||
|
m_AddedGameObjects: []
|
||||||
|
m_AddedComponents: []
|
||||||
|
m_SourcePrefab: {fileID: 100100000, guid: 88289d3d214349c418f4309a8f66557f, type: 3}
|
||||||
|
--- !u!1001 &224436092
|
||||||
|
PrefabInstance:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Modification:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TransformParent: {fileID: 0}
|
||||||
|
m_Modifications:
|
||||||
|
- target: {fileID: 3482803472994744189, guid: 59d345d67d954504a90ff6c6b66334e5, type: 3}
|
||||||
|
propertyPath: m_Name
|
||||||
|
value: Lukas
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 4606145862438615571, guid: 59d345d67d954504a90ff6c6b66334e5, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.x
|
||||||
|
value: 0.27393436
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 4606145862438615571, guid: 59d345d67d954504a90ff6c6b66334e5, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.y
|
||||||
|
value: 0.615
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 4606145862438615571, guid: 59d345d67d954504a90ff6c6b66334e5, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.z
|
||||||
|
value: 0.24515247
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 4606145862438615571, guid: 59d345d67d954504a90ff6c6b66334e5, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.w
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 4606145862438615571, guid: 59d345d67d954504a90ff6c6b66334e5, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 4606145862438615571, guid: 59d345d67d954504a90ff6c6b66334e5, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 4606145862438615571, guid: 59d345d67d954504a90ff6c6b66334e5, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 4606145862438615571, guid: 59d345d67d954504a90ff6c6b66334e5, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 4606145862438615571, guid: 59d345d67d954504a90ff6c6b66334e5, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 4606145862438615571, guid: 59d345d67d954504a90ff6c6b66334e5, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
m_RemovedComponents: []
|
||||||
|
m_RemovedGameObjects: []
|
||||||
|
m_AddedGameObjects: []
|
||||||
|
m_AddedComponents: []
|
||||||
|
m_SourcePrefab: {fileID: 100100000, guid: 59d345d67d954504a90ff6c6b66334e5, type: 3}
|
||||||
|
--- !u!1001 &759993930
|
||||||
|
PrefabInstance:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Modification:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TransformParent: {fileID: 0}
|
||||||
|
m_Modifications:
|
||||||
|
- target: {fileID: 3482803472994744189, guid: 7805d7725b9546e45a3a3c86c696b946, type: 3}
|
||||||
|
propertyPath: m_Name
|
||||||
|
value: Krystof 2
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 4606145862438615571, guid: 7805d7725b9546e45a3a3c86c696b946, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.x
|
||||||
|
value: 1.33
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 4606145862438615571, guid: 7805d7725b9546e45a3a3c86c696b946, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.y
|
||||||
|
value: 0.5
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 4606145862438615571, guid: 7805d7725b9546e45a3a3c86c696b946, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.z
|
||||||
|
value: -1.2
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 4606145862438615571, guid: 7805d7725b9546e45a3a3c86c696b946, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.w
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 4606145862438615571, guid: 7805d7725b9546e45a3a3c86c696b946, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 4606145862438615571, guid: 7805d7725b9546e45a3a3c86c696b946, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 4606145862438615571, guid: 7805d7725b9546e45a3a3c86c696b946, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 4606145862438615571, guid: 7805d7725b9546e45a3a3c86c696b946, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 4606145862438615571, guid: 7805d7725b9546e45a3a3c86c696b946, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 4606145862438615571, guid: 7805d7725b9546e45a3a3c86c696b946, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
m_RemovedComponents: []
|
||||||
|
m_RemovedGameObjects: []
|
||||||
|
m_AddedGameObjects: []
|
||||||
|
m_AddedComponents: []
|
||||||
|
m_SourcePrefab: {fileID: 100100000, guid: 7805d7725b9546e45a3a3c86c696b946, type: 3}
|
||||||
|
--- !u!1 &1157746204
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 1157746207}
|
||||||
|
- component: {fileID: 1157746206}
|
||||||
|
- component: {fileID: 1157746205}
|
||||||
|
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 &1157746205
|
||||||
|
AudioListener:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1157746204}
|
||||||
|
m_Enabled: 1
|
||||||
|
--- !u!20 &1157746206
|
||||||
|
Camera:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1157746204}
|
||||||
|
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_Iso: 200
|
||||||
|
m_ShutterSpeed: 0.005
|
||||||
|
m_Aperture: 16
|
||||||
|
m_FocusDistance: 10
|
||||||
|
m_FocalLength: 50
|
||||||
|
m_BladeCount: 5
|
||||||
|
m_Curvature: {x: 2, y: 11}
|
||||||
|
m_BarrelClipping: 0.25
|
||||||
|
m_Anamorphism: 0
|
||||||
|
m_SensorSize: {x: 36, y: 24}
|
||||||
|
m_LensShift: {x: 0, y: 0}
|
||||||
|
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 &1157746207
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1157746204}
|
||||||
|
serializedVersion: 2
|
||||||
|
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_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!1 &1399033505
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 1399033507}
|
||||||
|
- component: {fileID: 1399033506}
|
||||||
|
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 &1399033506
|
||||||
|
Light:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1399033505}
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 11
|
||||||
|
m_Type: 1
|
||||||
|
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_ForceVisible: 0
|
||||||
|
m_ShadowRadius: 0
|
||||||
|
m_ShadowAngle: 0
|
||||||
|
m_LightUnit: 1
|
||||||
|
m_LuxAtDistance: 1
|
||||||
|
m_EnableSpotReflector: 1
|
||||||
|
--- !u!4 &1399033507
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1399033505}
|
||||||
|
serializedVersion: 2
|
||||||
|
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_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0}
|
||||||
|
--- !u!1660057539 &9223372036854775807
|
||||||
|
SceneRoots:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_Roots:
|
||||||
|
- {fileID: 1157746207}
|
||||||
|
- {fileID: 1399033507}
|
||||||
|
- {fileID: 224436092}
|
||||||
|
- {fileID: 759993930}
|
||||||
|
- {fileID: 147052287}
|
||||||
7
Assets/1.unity.meta
Normal file
7
Assets/1.unity.meta
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 1638fd7e70d5e0b43b854291589e4425
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
8
Assets/Scenes/Main Screen Scenes.meta
Normal file
8
Assets/Scenes/Main Screen Scenes.meta
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 0d2bf6fbc15c94c4db51c326dbaa84ee
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
2295
Assets/Scenes/Main Screen Scenes/host a join.unity
Normal file
2295
Assets/Scenes/Main Screen Scenes/host a join.unity
Normal file
File diff suppressed because it is too large
Load Diff
7
Assets/Scenes/Main Screen Scenes/host a join.unity.meta
Normal file
7
Assets/Scenes/Main Screen Scenes/host a join.unity.meta
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 7555f1f2ac99b4e4f8a21ad9ca5fc1dc
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -224,7 +224,7 @@ GameObject:
|
|||||||
- component: {fileID: 425617995}
|
- component: {fileID: 425617995}
|
||||||
- component: {fileID: 425617994}
|
- component: {fileID: 425617994}
|
||||||
- component: {fileID: 425617993}
|
- component: {fileID: 425617993}
|
||||||
- component: {fileID: 425617992}
|
- component: {fileID: 425617998}
|
||||||
m_Layer: 0
|
m_Layer: 0
|
||||||
m_Name: canvas
|
m_Name: canvas
|
||||||
m_TagString: Untagged
|
m_TagString: Untagged
|
||||||
@@ -232,18 +232,6 @@ GameObject:
|
|||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
m_StaticEditorFlags: 0
|
m_StaticEditorFlags: 0
|
||||||
m_IsActive: 1
|
m_IsActive: 1
|
||||||
--- !u!114 &425617992
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 425617991}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: 003c58040bd638f43aa1def0f0f4276e, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier: '::'
|
|
||||||
--- !u!114 &425617993
|
--- !u!114 &425617993
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -256,7 +244,7 @@ MonoBehaviour:
|
|||||||
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image
|
m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image
|
||||||
m_Material: {fileID: 0}
|
m_Material: {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||||
m_RaycastTarget: 1
|
m_RaycastTarget: 1
|
||||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||||
@@ -264,8 +252,8 @@ MonoBehaviour:
|
|||||||
m_OnCullStateChanged:
|
m_OnCullStateChanged:
|
||||||
m_PersistentCalls:
|
m_PersistentCalls:
|
||||||
m_Calls: []
|
m_Calls: []
|
||||||
m_Sprite: {fileID: 0}
|
m_Sprite: {fileID: 10911, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
m_Type: 0
|
m_Type: 1
|
||||||
m_PreserveAspect: 0
|
m_PreserveAspect: 0
|
||||||
m_FillCenter: 1
|
m_FillCenter: 1
|
||||||
m_FillMethod: 4
|
m_FillMethod: 4
|
||||||
@@ -345,7 +333,7 @@ MonoBehaviour:
|
|||||||
m_SelectedTrigger: Selected
|
m_SelectedTrigger: Selected
|
||||||
m_DisabledTrigger: Disabled
|
m_DisabledTrigger: Disabled
|
||||||
m_Interactable: 1
|
m_Interactable: 1
|
||||||
m_TargetGraphic: {fileID: 0}
|
m_TargetGraphic: {fileID: 425617993}
|
||||||
m_OnClick:
|
m_OnClick:
|
||||||
m_PersistentCalls:
|
m_PersistentCalls:
|
||||||
m_Calls: []
|
m_Calls: []
|
||||||
@@ -368,6 +356,26 @@ RectTransform:
|
|||||||
m_AnchoredPosition: {x: 0, y: 0}
|
m_AnchoredPosition: {x: 0, y: 0}
|
||||||
m_SizeDelta: {x: 0, y: 0}
|
m_SizeDelta: {x: 0, y: 0}
|
||||||
m_Pivot: {x: 0, y: 0}
|
m_Pivot: {x: 0, y: 0}
|
||||||
|
--- !u!114 &425617998
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 425617991}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: d3fa58532362d2547ab6cd0ab17d7bde, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier: Assembly-CSharp::CableMiniGame
|
||||||
|
cables:
|
||||||
|
- colorName:
|
||||||
|
sourceButton: {fileID: 0}
|
||||||
|
targetButton: {fileID: 0}
|
||||||
|
cableImage: {fileID: 0}
|
||||||
|
previousSceneName:
|
||||||
|
wrongAttemptColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
blinkDuration: 0.2
|
||||||
--- !u!1 &1645776851
|
--- !u!1 &1645776851
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
|||||||
1281
Assets/Scenes/MiniGame-insertkeys.unity
Normal file
1281
Assets/Scenes/MiniGame-insertkeys.unity
Normal file
File diff suppressed because it is too large
Load Diff
7
Assets/Scenes/MiniGame-insertkeys.unity.meta
Normal file
7
Assets/Scenes/MiniGame-insertkeys.unity.meta
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: a9886d0962880e14fb8072fee41dc9b5
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
1079
Assets/Scenes/loading_screen.unity
Normal file
1079
Assets/Scenes/loading_screen.unity
Normal file
File diff suppressed because it is too large
Load Diff
7
Assets/Scenes/loading_screen.unity.meta
Normal file
7
Assets/Scenes/loading_screen.unity.meta
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 2df0edf87e5f52f4e958416765418027
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -1,51 +0,0 @@
|
|||||||
using UnityEngine;
|
|
||||||
|
|
||||||
public class WindController : MonoBehaviour
|
|
||||||
{
|
|
||||||
[Header("settings větru")]
|
|
||||||
[Tooltip("Maximální síla větru (kladná i záporná)")]
|
|
||||||
public float maxWindTorque = 8f;
|
|
||||||
|
|
||||||
[Tooltip("Jak rychle se větr mění směrem/sílou")]
|
|
||||||
public float windChangeSpeed = 0.6f;
|
|
||||||
|
|
||||||
[Tooltip("Jak často se objeví silnější vichřice (v sekundách)")]
|
|
||||||
public float gustInterval = 4f;
|
|
||||||
|
|
||||||
[Tooltip("Multiplier pro sílu vichřice")]
|
|
||||||
public float gustMultiplier = 2.0f;
|
|
||||||
|
|
||||||
public float CurrentWindTorque { get; private set; }
|
|
||||||
|
|
||||||
private float targetTorque;
|
|
||||||
private float gustTimer;
|
|
||||||
|
|
||||||
void Start()
|
|
||||||
{
|
|
||||||
PickNewTargetTorque();
|
|
||||||
gustTimer = gustInterval;
|
|
||||||
}
|
|
||||||
|
|
||||||
void Update()
|
|
||||||
{
|
|
||||||
// Smoothly move wind toward target torque
|
|
||||||
CurrentWindTorque = Mathf.Lerp(CurrentWindTorque, targetTorque, Time.deltaTime * windChangeSpeed);
|
|
||||||
|
|
||||||
// Occasional gusts
|
|
||||||
gustTimer -= Time.deltaTime;
|
|
||||||
if (gustTimer <= 0f)
|
|
||||||
{
|
|
||||||
// Apply a short gust by shifting target torque more aggressively
|
|
||||||
float gust = Random.Range(-maxWindTorque, maxWindTorque) * gustMultiplier;
|
|
||||||
targetTorque = Mathf.Clamp(gust, -maxWindTorque * gustMultiplier, maxWindTorque * gustMultiplier);
|
|
||||||
|
|
||||||
gustTimer = gustInterval;
|
|
||||||
Invoke(nameof(PickNewTargetTorque), 0.8f); // gust lasts ~0.8s
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void PickNewTargetTorque()
|
|
||||||
{
|
|
||||||
targetTorque = Random.Range(-maxWindTorque, maxWindTorque);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
8
Assets/Scripts/data_transfer.meta
Normal file
8
Assets/Scripts/data_transfer.meta
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: f58705c1c4d76414abdfecdd1db84138
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
7245
Assets/Scripts/data_transfer/Data transfer obrazovky.unity
Normal file
7245
Assets/Scripts/data_transfer/Data transfer obrazovky.unity
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 7bdbf665e98e4784abc032b54fa6188b
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
202
Assets/Scripts/data_transfer/Data_transfer.cs
Normal file
202
Assets/Scripts/data_transfer/Data_transfer.cs
Normal file
@@ -0,0 +1,202 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections;
|
||||||
|
using UnityEngine;
|
||||||
|
using TMPro;
|
||||||
|
|
||||||
|
public class GPSTaskManager : MonoBehaviour, ITask
|
||||||
|
{
|
||||||
|
[Header("Target Location")]
|
||||||
|
[SerializeField] private double targetLatitude = 48.8584;
|
||||||
|
[SerializeField] private double targetLongitude = 2.2945;
|
||||||
|
|
||||||
|
[Header("Task Settings")]
|
||||||
|
[SerializeField] private float completionRadius = 15f;
|
||||||
|
[SerializeField] private float updateInterval = 1f;
|
||||||
|
|
||||||
|
[Header("GPS Initialization")]
|
||||||
|
[SerializeField] private float gpsInitTimeout = 20f;
|
||||||
|
[SerializeField] private float desiredAccuracyMeters = 5f;
|
||||||
|
[SerializeField] private float updateDistanceMeters = 1f;
|
||||||
|
|
||||||
|
[Header("UI References")]
|
||||||
|
[SerializeField] private TMP_Text distanceText;
|
||||||
|
[SerializeField] private TMP_Text bearingText;
|
||||||
|
[SerializeField] private TMP_Text statusText;
|
||||||
|
|
||||||
|
public event Action OnTaskCompleted;
|
||||||
|
public event Action<float, float> OnLocationUpdated;
|
||||||
|
|
||||||
|
private Action<ITask> _onCompleted;
|
||||||
|
private Action<ITask> _onExit;
|
||||||
|
|
||||||
|
public string TaskID { get; set; }
|
||||||
|
public TaskType TaskType { get; set; }
|
||||||
|
public string TaskName { get; set; }
|
||||||
|
public (double, double) TaskLocation { get; set; }
|
||||||
|
public bool IsCompleted { get; private set; }
|
||||||
|
|
||||||
|
private bool _gpsInitialized = false;
|
||||||
|
private bool _taskCompleted = false;
|
||||||
|
private bool _isRunning = false;
|
||||||
|
private Coroutine _trackingCoroutine;
|
||||||
|
|
||||||
|
private const double EarthRadiusMeters = 6_371_000.0;
|
||||||
|
|
||||||
|
private void Start()
|
||||||
|
{
|
||||||
|
SetStatus("Initializing GPS…");
|
||||||
|
_trackingCoroutine = StartCoroutine(InitializeAndTrack());
|
||||||
|
}
|
||||||
|
|
||||||
|
private void OnDisable()
|
||||||
|
{
|
||||||
|
StopTracking();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void SetTarget(double latitude, double longitude)
|
||||||
|
{
|
||||||
|
targetLatitude = latitude;
|
||||||
|
targetLongitude = longitude;
|
||||||
|
_taskCompleted = false;
|
||||||
|
IsCompleted = false;
|
||||||
|
Debug.Log($"[GPS] New target → ({latitude:F6}, {longitude:F6})");
|
||||||
|
}
|
||||||
|
|
||||||
|
public void StopTracking()
|
||||||
|
{
|
||||||
|
_isRunning = false;
|
||||||
|
if (_trackingCoroutine != null)
|
||||||
|
{
|
||||||
|
StopCoroutine(_trackingCoroutine);
|
||||||
|
_trackingCoroutine = null;
|
||||||
|
}
|
||||||
|
Input.location.Stop();
|
||||||
|
Debug.Log("[GPS] Tracking stopped.");
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Initialize(Action<ITask> onCompleted)
|
||||||
|
{
|
||||||
|
_onCompleted = onCompleted;
|
||||||
|
IsCompleted = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Complete()
|
||||||
|
{
|
||||||
|
if (IsCompleted) return;
|
||||||
|
|
||||||
|
IsCompleted = true;
|
||||||
|
_onCompleted?.Invoke(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void ExitTask(Action<ITask> onExit)
|
||||||
|
{
|
||||||
|
_onExit = onExit;
|
||||||
|
_onExit?.Invoke(this);
|
||||||
|
|
||||||
|
StopTracking();
|
||||||
|
}
|
||||||
|
|
||||||
|
private IEnumerator InitializeAndTrack()
|
||||||
|
{
|
||||||
|
if (!Input.location.isEnabledByUser)
|
||||||
|
{
|
||||||
|
SetStatus("ERROR: GPS disabled.");
|
||||||
|
yield break;
|
||||||
|
}
|
||||||
|
|
||||||
|
Input.location.Start(desiredAccuracyMeters, updateDistanceMeters);
|
||||||
|
SetStatus("Starting GPS…");
|
||||||
|
|
||||||
|
float elapsed = 0f;
|
||||||
|
while (Input.location.status == LocationServiceStatus.Initializing && elapsed < gpsInitTimeout)
|
||||||
|
{
|
||||||
|
elapsed += 0.5f;
|
||||||
|
yield return new WaitForSeconds(0.5f);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Input.location.status != LocationServiceStatus.Running)
|
||||||
|
{
|
||||||
|
SetStatus("ERROR: GPS failed.");
|
||||||
|
yield break;
|
||||||
|
}
|
||||||
|
|
||||||
|
_gpsInitialized = true;
|
||||||
|
_isRunning = true;
|
||||||
|
SetStatus("GPS Active ✓");
|
||||||
|
|
||||||
|
while (_isRunning)
|
||||||
|
{
|
||||||
|
LocationInfo loc = Input.location.lastData;
|
||||||
|
|
||||||
|
float distance = CalculateDistance(loc.latitude, loc.longitude,
|
||||||
|
targetLatitude, targetLongitude);
|
||||||
|
|
||||||
|
float bearing = CalculateBearing(loc.latitude, loc.longitude,
|
||||||
|
targetLatitude, targetLongitude);
|
||||||
|
|
||||||
|
UpdateUI(distance, bearing);
|
||||||
|
OnLocationUpdated?.Invoke(distance, bearing);
|
||||||
|
|
||||||
|
if (!_taskCompleted && distance <= completionRadius)
|
||||||
|
{
|
||||||
|
_taskCompleted = true;
|
||||||
|
HandleTaskCompleted(distance);
|
||||||
|
}
|
||||||
|
|
||||||
|
yield return new WaitForSeconds(updateInterval);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void HandleTaskCompleted(float finalDistance)
|
||||||
|
{
|
||||||
|
Debug.Log($"[GPS] TASK COMPLETED ({finalDistance:F1}m)");
|
||||||
|
SetStatus($" Done ({finalDistance:F1}m)");
|
||||||
|
|
||||||
|
OnTaskCompleted?.Invoke();
|
||||||
|
|
||||||
|
Complete();
|
||||||
|
}
|
||||||
|
|
||||||
|
private float CalculateDistance(double lat1, double lon1, double lat2, double lon2)
|
||||||
|
{
|
||||||
|
double dLat = ToRadians(lat2 - lat1);
|
||||||
|
double dLon = ToRadians(lon2 - lon1);
|
||||||
|
|
||||||
|
double a = Math.Sin(dLat / 2) * Math.Sin(dLat / 2) +
|
||||||
|
Math.Cos(ToRadians(lat1)) * Math.Cos(ToRadians(lat2)) *
|
||||||
|
Math.Sin(dLon / 2) * Math.Sin(dLon / 2);
|
||||||
|
|
||||||
|
double c = 2 * Math.Atan2(Math.Sqrt(a), Math.Sqrt(1 - a));
|
||||||
|
return (float)(EarthRadiusMeters * c);
|
||||||
|
}
|
||||||
|
|
||||||
|
private float CalculateBearing(double lat1, double lon1, double lat2, double lon2)
|
||||||
|
{
|
||||||
|
double dLon = ToRadians(lon2 - lon1);
|
||||||
|
|
||||||
|
double y = Math.Sin(dLon) * Math.Cos(ToRadians(lat2));
|
||||||
|
double x = Math.Cos(ToRadians(lat1)) * Math.Sin(ToRadians(lat2)) -
|
||||||
|
Math.Sin(ToRadians(lat1)) * Math.Cos(ToRadians(lat2)) * Math.Cos(dLon);
|
||||||
|
|
||||||
|
double brng = ToDegrees(Math.Atan2(y, x));
|
||||||
|
return (float)((brng + 360) % 360);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void UpdateUI(float distance, float bearing)
|
||||||
|
{
|
||||||
|
if (distanceText != null)
|
||||||
|
distanceText.text = $"Distance: {distance:F1} m";
|
||||||
|
|
||||||
|
if (bearingText != null)
|
||||||
|
bearingText.text = $"Bearing: {bearing:F1}°";
|
||||||
|
}
|
||||||
|
|
||||||
|
private void SetStatus(string message)
|
||||||
|
{
|
||||||
|
if (statusText != null)
|
||||||
|
statusText.text = message;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static double ToRadians(double deg) => deg * Math.PI / 180.0;
|
||||||
|
private static double ToDegrees(double rad) => rad * 180.0 / Math.PI;
|
||||||
|
}
|
||||||
2
Assets/Scripts/data_transfer/Data_transfer.cs.meta
Normal file
2
Assets/Scripts/data_transfer/Data_transfer.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: a3ce561d9b4708f40855570fb194929d
|
||||||
30
Assets/Scripts/data_transfer/LoadingScreen.cs
Normal file
30
Assets/Scripts/data_transfer/LoadingScreen.cs
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public class RevealObjects : MonoBehaviour
|
||||||
|
{
|
||||||
|
public List<GameObject> objects; // seznam objektů
|
||||||
|
public float delay = 1f; // čas mezi odkrýváním
|
||||||
|
|
||||||
|
void Start()
|
||||||
|
{
|
||||||
|
// nejdřív všechny skryjeme
|
||||||
|
foreach (GameObject obj in objects)
|
||||||
|
{
|
||||||
|
obj.SetActive(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
// spustíme postupné odkrývání
|
||||||
|
StartCoroutine(Reveal());
|
||||||
|
}
|
||||||
|
|
||||||
|
IEnumerator Reveal()
|
||||||
|
{
|
||||||
|
foreach (GameObject obj in objects)
|
||||||
|
{
|
||||||
|
yield return new WaitForSeconds(delay);
|
||||||
|
obj.SetActive(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
2
Assets/Scripts/data_transfer/LoadingScreen.cs.meta
Normal file
2
Assets/Scripts/data_transfer/LoadingScreen.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 8d5937cb3c7de55489de1036ddfff719
|
||||||
8
Assets/Scripts/data_transfer/Materials.meta
Normal file
8
Assets/Scripts/data_transfer/Materials.meta
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: f6d58bdce1c60554086c57919ccd14fa
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
84
Assets/Scripts/data_transfer/Materials/New Material 1.mat
Normal file
84
Assets/Scripts/data_transfer/Materials/New Material 1.mat
Normal file
@@ -0,0 +1,84 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!21 &2100000
|
||||||
|
Material:
|
||||||
|
serializedVersion: 8
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: New Material 1
|
||||||
|
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_Parent: {fileID: 0}
|
||||||
|
m_ModifiedSerializedProperties: 0
|
||||||
|
m_ValidKeywords: []
|
||||||
|
m_InvalidKeywords: []
|
||||||
|
m_LightmapFlags: 4
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: -1
|
||||||
|
stringTagMap: {}
|
||||||
|
disabledShaderPasses: []
|
||||||
|
m_LockedProperties:
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _BumpMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailAlbedoMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailMask:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailNormalMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _EmissionMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MainTex:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MetallicGlossMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _OcclusionMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _ParallaxMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Ints: []
|
||||||
|
m_Floats:
|
||||||
|
- _BumpScale: 1
|
||||||
|
- _Cutoff: 0.5
|
||||||
|
- _DetailNormalMapScale: 1
|
||||||
|
- _DstBlend: 0
|
||||||
|
- _GlossMapScale: 1
|
||||||
|
- _Glossiness: 0.5
|
||||||
|
- _GlossyReflections: 1
|
||||||
|
- _Metallic: 0
|
||||||
|
- _Mode: 0
|
||||||
|
- _OcclusionStrength: 1
|
||||||
|
- _Parallax: 0.02
|
||||||
|
- _SmoothnessTextureChannel: 0
|
||||||
|
- _SpecularHighlights: 1
|
||||||
|
- _SrcBlend: 1
|
||||||
|
- _UVSec: 0
|
||||||
|
- _ZWrite: 1
|
||||||
|
m_Colors:
|
||||||
|
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
m_BuildTextureStacks: []
|
||||||
|
m_AllowLocking: 1
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 389d2c972015a094fb15cf4e78f3cf00
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 2100000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
84
Assets/Scripts/data_transfer/Materials/New Material 2.mat
Normal file
84
Assets/Scripts/data_transfer/Materials/New Material 2.mat
Normal file
@@ -0,0 +1,84 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!21 &2100000
|
||||||
|
Material:
|
||||||
|
serializedVersion: 8
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: New Material 2
|
||||||
|
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_Parent: {fileID: 0}
|
||||||
|
m_ModifiedSerializedProperties: 0
|
||||||
|
m_ValidKeywords: []
|
||||||
|
m_InvalidKeywords: []
|
||||||
|
m_LightmapFlags: 4
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: -1
|
||||||
|
stringTagMap: {}
|
||||||
|
disabledShaderPasses: []
|
||||||
|
m_LockedProperties:
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _BumpMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailAlbedoMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailMask:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailNormalMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _EmissionMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MainTex:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MetallicGlossMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _OcclusionMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _ParallaxMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Ints: []
|
||||||
|
m_Floats:
|
||||||
|
- _BumpScale: 1
|
||||||
|
- _Cutoff: 0.5
|
||||||
|
- _DetailNormalMapScale: 1
|
||||||
|
- _DstBlend: 0
|
||||||
|
- _GlossMapScale: 1
|
||||||
|
- _Glossiness: 0.567
|
||||||
|
- _GlossyReflections: 1
|
||||||
|
- _Metallic: 0
|
||||||
|
- _Mode: 0
|
||||||
|
- _OcclusionStrength: 1
|
||||||
|
- _Parallax: 0.02
|
||||||
|
- _SmoothnessTextureChannel: 0
|
||||||
|
- _SpecularHighlights: 1
|
||||||
|
- _SrcBlend: 1
|
||||||
|
- _UVSec: 0
|
||||||
|
- _ZWrite: 1
|
||||||
|
m_Colors:
|
||||||
|
- _Color: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
m_BuildTextureStacks: []
|
||||||
|
m_AllowLocking: 1
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: bc9ffa0d8d471fe43be6f9f49eadcc57
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 2100000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
84
Assets/Scripts/data_transfer/Materials/New Material.mat
Normal file
84
Assets/Scripts/data_transfer/Materials/New Material.mat
Normal file
@@ -0,0 +1,84 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!21 &2100000
|
||||||
|
Material:
|
||||||
|
serializedVersion: 8
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: New Material
|
||||||
|
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_Parent: {fileID: 0}
|
||||||
|
m_ModifiedSerializedProperties: 0
|
||||||
|
m_ValidKeywords: []
|
||||||
|
m_InvalidKeywords: []
|
||||||
|
m_LightmapFlags: 4
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: -1
|
||||||
|
stringTagMap: {}
|
||||||
|
disabledShaderPasses: []
|
||||||
|
m_LockedProperties:
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _BumpMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailAlbedoMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailMask:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailNormalMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _EmissionMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MainTex:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MetallicGlossMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _OcclusionMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _ParallaxMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Ints: []
|
||||||
|
m_Floats:
|
||||||
|
- _BumpScale: 1
|
||||||
|
- _Cutoff: 0.5
|
||||||
|
- _DetailNormalMapScale: 1
|
||||||
|
- _DstBlend: 0
|
||||||
|
- _GlossMapScale: 1
|
||||||
|
- _Glossiness: 0.5
|
||||||
|
- _GlossyReflections: 1
|
||||||
|
- _Metallic: 0
|
||||||
|
- _Mode: 0
|
||||||
|
- _OcclusionStrength: 1
|
||||||
|
- _Parallax: 0.02
|
||||||
|
- _SmoothnessTextureChannel: 0
|
||||||
|
- _SpecularHighlights: 1
|
||||||
|
- _SrcBlend: 1
|
||||||
|
- _UVSec: 0
|
||||||
|
- _ZWrite: 1
|
||||||
|
m_Colors:
|
||||||
|
- _Color: {r: 0, g: 1, b: 0.06817293, a: 1}
|
||||||
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
m_BuildTextureStacks: []
|
||||||
|
m_AllowLocking: 1
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 3e9680799b525314ca042eab0d5d3e56
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 2100000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
30
Assets/Scripts/data_transfer/RevealObjectCopy.cs
Normal file
30
Assets/Scripts/data_transfer/RevealObjectCopy.cs
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public class RevealObjectCopy : MonoBehaviour
|
||||||
|
{
|
||||||
|
public List<GameObject> objects; // seznam objekt?
|
||||||
|
public float delay = 1f; // ?as mezi odkrýváním
|
||||||
|
|
||||||
|
void Start()
|
||||||
|
{
|
||||||
|
// nejd?ív všechny skryjeme
|
||||||
|
foreach (GameObject obj in objects)
|
||||||
|
{
|
||||||
|
obj.SetActive(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
// spustíme postupné odkrývání
|
||||||
|
StartCoroutine(Reveal());
|
||||||
|
}
|
||||||
|
|
||||||
|
IEnumerator Reveal()
|
||||||
|
{
|
||||||
|
foreach (GameObject obj in objects)
|
||||||
|
{
|
||||||
|
yield return new WaitForSeconds(delay);
|
||||||
|
obj.SetActive(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
2
Assets/Scripts/data_transfer/RevealObjectCopy.cs.meta
Normal file
2
Assets/Scripts/data_transfer/RevealObjectCopy.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: e02367e9acf49bc4ebb01bb44f47d312
|
||||||
8
Assets/Scripts/flakni_krtka.meta
Normal file
8
Assets/Scripts/flakni_krtka.meta
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 53dcb38d358ca1348978dd32c4091cc3
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
113
Assets/Scripts/flakni_krtka/Eda.prefab
Normal file
113
Assets/Scripts/flakni_krtka/Eda.prefab
Normal file
@@ -0,0 +1,113 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1 &3482803472994744189
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 4606145862438615571}
|
||||||
|
- component: {fileID: 8159852936948661382}
|
||||||
|
- component: {fileID: 3709715220609332040}
|
||||||
|
- component: {fileID: 837426559564388989}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Eda
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &4606145862438615571
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3482803472994744189}
|
||||||
|
serializedVersion: 2
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0.5, y: 0.35, z: 0.5}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!33 &8159852936948661382
|
||||||
|
MeshFilter:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3482803472994744189}
|
||||||
|
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
--- !u!23 &3709715220609332040
|
||||||
|
MeshRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3482803472994744189}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_CastShadows: 1
|
||||||
|
m_ReceiveShadows: 1
|
||||||
|
m_DynamicOccludee: 1
|
||||||
|
m_StaticShadowCaster: 0
|
||||||
|
m_MotionVectors: 1
|
||||||
|
m_LightProbeUsage: 1
|
||||||
|
m_ReflectionProbeUsage: 1
|
||||||
|
m_RayTracingMode: 2
|
||||||
|
m_RayTraceProcedural: 0
|
||||||
|
m_RayTracingAccelStructBuildFlagsOverride: 0
|
||||||
|
m_RayTracingAccelStructBuildFlags: 1
|
||||||
|
m_SmallMeshCulling: 1
|
||||||
|
m_ForceMeshLod: -1
|
||||||
|
m_MeshLodSelectionBias: 0
|
||||||
|
m_RenderingLayerMask: 1
|
||||||
|
m_RendererPriority: 0
|
||||||
|
m_Materials:
|
||||||
|
- {fileID: 2100000, guid: b82ca45325e26014eb975de2543510c7, type: 2}
|
||||||
|
m_StaticBatchInfo:
|
||||||
|
firstSubMesh: 0
|
||||||
|
subMeshCount: 0
|
||||||
|
m_StaticBatchRoot: {fileID: 0}
|
||||||
|
m_ProbeAnchor: {fileID: 0}
|
||||||
|
m_LightProbeVolumeOverride: {fileID: 0}
|
||||||
|
m_ScaleInLightmap: 1
|
||||||
|
m_ReceiveGI: 1
|
||||||
|
m_PreserveUVs: 0
|
||||||
|
m_IgnoreNormalsForChartDetection: 0
|
||||||
|
m_ImportantGI: 0
|
||||||
|
m_StitchLightmapSeams: 1
|
||||||
|
m_SelectedEditorRenderState: 3
|
||||||
|
m_MinimumChartSize: 4
|
||||||
|
m_AutoUVMaxDistance: 0.5
|
||||||
|
m_AutoUVMaxAngle: 89
|
||||||
|
m_LightmapParameters: {fileID: 0}
|
||||||
|
m_GlobalIlluminationMeshLod: 0
|
||||||
|
m_SortingLayerID: 0
|
||||||
|
m_SortingLayer: 0
|
||||||
|
m_SortingOrder: 0
|
||||||
|
m_AdditionalVertexStreams: {fileID: 0}
|
||||||
|
--- !u!65 &837426559564388989
|
||||||
|
BoxCollider:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3482803472994744189}
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_IncludeLayers:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 0
|
||||||
|
m_ExcludeLayers:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 0
|
||||||
|
m_LayerOverridePriority: 0
|
||||||
|
m_IsTrigger: 0
|
||||||
|
m_ProvidesContacts: 0
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 3
|
||||||
|
m_Size: {x: 1, y: 1, z: 1}
|
||||||
|
m_Center: {x: 0, y: 0, z: 0}
|
||||||
7
Assets/Scripts/flakni_krtka/Eda.prefab.meta
Normal file
7
Assets/Scripts/flakni_krtka/Eda.prefab.meta
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 88289d3d214349c418f4309a8f66557f
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
175
Assets/Scripts/flakni_krtka/Flakni_krtka.cs
Normal file
175
Assets/Scripts/flakni_krtka/Flakni_krtka.cs
Normal file
@@ -0,0 +1,175 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
using UnityEngine.UI;
|
||||||
|
using TMPro;
|
||||||
|
|
||||||
|
public class WhackTheMoleTask : MonoBehaviour, ITask
|
||||||
|
{
|
||||||
|
[Header("Game Settings")]
|
||||||
|
public float moleAppearTime = 1.5f;
|
||||||
|
public float spawnInterval = 0.8f;
|
||||||
|
public int gameDuration = 30;
|
||||||
|
public int scoreThreshold = 5;
|
||||||
|
|
||||||
|
[Header("UI References")]
|
||||||
|
public List<Button> holes;
|
||||||
|
public TMP_Text scoreText;
|
||||||
|
public TMP_Text timerText;
|
||||||
|
|
||||||
|
public string TaskID { get; set; }
|
||||||
|
public TaskType TaskType { get; set; }
|
||||||
|
public string TaskName { get; set; }
|
||||||
|
public (double, double) TaskLocation { get; set; }
|
||||||
|
public bool IsCompleted { get; private set; }
|
||||||
|
|
||||||
|
private Action<ITask> _onCompleted;
|
||||||
|
private Action<ITask> _onExit;
|
||||||
|
|
||||||
|
private int _score;
|
||||||
|
private float _timer;
|
||||||
|
private bool _gameRunning;
|
||||||
|
private Button _activeMole;
|
||||||
|
private int _lastHoleIndex = -1;
|
||||||
|
private Coroutine _hideMoleCoroutine;
|
||||||
|
private Coroutine _gameLoopCoroutine;
|
||||||
|
|
||||||
|
private void Start()
|
||||||
|
{
|
||||||
|
Initialize(null);
|
||||||
|
_gameLoopCoroutine = StartCoroutine(GameLoop());
|
||||||
|
}
|
||||||
|
|
||||||
|
private void OnDisable()
|
||||||
|
{
|
||||||
|
ExitTask(_onExit);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Initialize(Action<ITask> onCompleted)
|
||||||
|
{
|
||||||
|
_onCompleted = onCompleted;
|
||||||
|
IsCompleted = false;
|
||||||
|
_score = 0;
|
||||||
|
_gameRunning = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Complete()
|
||||||
|
{
|
||||||
|
if (IsCompleted) return;
|
||||||
|
IsCompleted = true;
|
||||||
|
_onCompleted?.Invoke(this);
|
||||||
|
Debug.Log("[WhackTheMole] Task completed!");
|
||||||
|
}
|
||||||
|
|
||||||
|
public void ExitTask(Action<ITask> onExit)
|
||||||
|
{
|
||||||
|
_onExit = onExit;
|
||||||
|
_gameRunning = false;
|
||||||
|
StopGameCoroutines();
|
||||||
|
SetAllHolesInactive();
|
||||||
|
_onExit?.Invoke(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
private IEnumerator GameLoop()
|
||||||
|
{
|
||||||
|
_timer = gameDuration;
|
||||||
|
_score = 0;
|
||||||
|
_gameRunning = true;
|
||||||
|
RefreshScore();
|
||||||
|
RefreshTimer();
|
||||||
|
|
||||||
|
float nextSpawn = 0f;
|
||||||
|
|
||||||
|
while (_timer > 0f && _gameRunning)
|
||||||
|
{
|
||||||
|
_timer -= Time.deltaTime;
|
||||||
|
nextSpawn -= Time.deltaTime;
|
||||||
|
RefreshTimer();
|
||||||
|
|
||||||
|
if (nextSpawn <= 0f)
|
||||||
|
{
|
||||||
|
SpawnMole();
|
||||||
|
nextSpawn = spawnInterval;
|
||||||
|
}
|
||||||
|
|
||||||
|
yield return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
_gameRunning = false;
|
||||||
|
EndGame();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void SpawnMole()
|
||||||
|
{
|
||||||
|
if (_hideMoleCoroutine != null) StopCoroutine(_hideMoleCoroutine);
|
||||||
|
if (_activeMole != null) _activeMole.gameObject.SetActive(false);
|
||||||
|
|
||||||
|
int index = PickHoleIndex();
|
||||||
|
_lastHoleIndex = index;
|
||||||
|
_activeMole = holes[index];
|
||||||
|
|
||||||
|
_activeMole.gameObject.SetActive(true);
|
||||||
|
Button thisHole = _activeMole;
|
||||||
|
_activeMole.onClick.RemoveAllListeners();
|
||||||
|
_activeMole.onClick.AddListener(() => OnMoleHit(thisHole));
|
||||||
|
|
||||||
|
_hideMoleCoroutine = StartCoroutine(AutoHideMole(thisHole, moleAppearTime));
|
||||||
|
}
|
||||||
|
|
||||||
|
private int PickHoleIndex()
|
||||||
|
{
|
||||||
|
if (holes.Count == 1) return 0;
|
||||||
|
int index;
|
||||||
|
int attempts = 0;
|
||||||
|
const int maxAttempts = 10;
|
||||||
|
do
|
||||||
|
{
|
||||||
|
index = UnityEngine.Random.Range(0, holes.Count);
|
||||||
|
attempts++;
|
||||||
|
} while (index == _lastHoleIndex && attempts < maxAttempts);
|
||||||
|
return index;
|
||||||
|
}
|
||||||
|
|
||||||
|
private IEnumerator AutoHideMole(Button mole, float delay)
|
||||||
|
{
|
||||||
|
yield return new WaitForSeconds(delay);
|
||||||
|
if (mole == _activeMole) mole.gameObject.SetActive(false);
|
||||||
|
_activeMole = null;
|
||||||
|
_hideMoleCoroutine = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void OnMoleHit(Button mole)
|
||||||
|
{
|
||||||
|
if (!_gameRunning) return;
|
||||||
|
if (_hideMoleCoroutine != null) StopCoroutine(_hideMoleCoroutine);
|
||||||
|
mole.gameObject.SetActive(false);
|
||||||
|
if (mole == _activeMole) _activeMole = null;
|
||||||
|
_score++;
|
||||||
|
RefreshScore();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void EndGame()
|
||||||
|
{
|
||||||
|
SetAllHolesInactive();
|
||||||
|
Debug.Log($"[WhackTheMole] Game ended. Score: {_score} / Threshold: {scoreThreshold}");
|
||||||
|
if (_score >= scoreThreshold) Complete();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void StopGameCoroutines()
|
||||||
|
{
|
||||||
|
if (_hideMoleCoroutine != null) { StopCoroutine(_hideMoleCoroutine); _hideMoleCoroutine = null; }
|
||||||
|
if (_gameLoopCoroutine != null) { StopCoroutine(_gameLoopCoroutine); _gameLoopCoroutine = null; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private void SetAllHolesInactive()
|
||||||
|
{
|
||||||
|
if (holes == null) return;
|
||||||
|
foreach (var hole in holes)
|
||||||
|
if (hole != null) hole.gameObject.SetActive(false);
|
||||||
|
_activeMole = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void RefreshScore() { if (scoreText != null) scoreText.text = $"Score: {_score}"; }
|
||||||
|
private void RefreshTimer() { if (timerText != null) timerText.text = $"Time: {Mathf.CeilToInt(_timer)}"; }
|
||||||
|
}
|
||||||
2
Assets/Scripts/flakni_krtka/Flakni_krtka.cs.meta
Normal file
2
Assets/Scripts/flakni_krtka/Flakni_krtka.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 47db745d0b3a1d94b8b60c34e8860151
|
||||||
BIN
Assets/Scripts/flakni_krtka/IMG_20260328_135248.jpg
Normal file
BIN
Assets/Scripts/flakni_krtka/IMG_20260328_135248.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 473 KiB |
143
Assets/Scripts/flakni_krtka/IMG_20260328_135248.jpg.meta
Normal file
143
Assets/Scripts/flakni_krtka/IMG_20260328_135248.jpg.meta
Normal file
@@ -0,0 +1,143 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 0eece0f08622a7449b81ecc0b14b344a
|
||||||
|
TextureImporter:
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 13
|
||||||
|
mipmaps:
|
||||||
|
mipMapMode: 0
|
||||||
|
enableMipMap: 1
|
||||||
|
sRGBTexture: 1
|
||||||
|
linearTexture: 0
|
||||||
|
fadeOut: 0
|
||||||
|
borderMipMap: 0
|
||||||
|
mipMapsPreserveCoverage: 0
|
||||||
|
alphaTestReferenceValue: 0.5
|
||||||
|
mipMapFadeDistanceStart: 1
|
||||||
|
mipMapFadeDistanceEnd: 3
|
||||||
|
bumpmap:
|
||||||
|
convertToNormalMap: 0
|
||||||
|
externalNormalMap: 0
|
||||||
|
heightScale: 0.25
|
||||||
|
normalMapFilter: 0
|
||||||
|
flipGreenChannel: 0
|
||||||
|
isReadable: 0
|
||||||
|
streamingMipmaps: 0
|
||||||
|
streamingMipmapsPriority: 0
|
||||||
|
vTOnly: 0
|
||||||
|
ignoreMipmapLimit: 0
|
||||||
|
grayScaleToAlpha: 0
|
||||||
|
generateCubemap: 6
|
||||||
|
cubemapConvolution: 0
|
||||||
|
seamlessCubemap: 0
|
||||||
|
textureFormat: 1
|
||||||
|
maxTextureSize: 2048
|
||||||
|
textureSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
filterMode: 1
|
||||||
|
aniso: 1
|
||||||
|
mipBias: 0
|
||||||
|
wrapU: 0
|
||||||
|
wrapV: 0
|
||||||
|
wrapW: 0
|
||||||
|
nPOTScale: 1
|
||||||
|
lightmap: 0
|
||||||
|
compressionQuality: 50
|
||||||
|
spriteMode: 0
|
||||||
|
spriteExtrude: 1
|
||||||
|
spriteMeshType: 1
|
||||||
|
alignment: 0
|
||||||
|
spritePivot: {x: 0.5, y: 0.5}
|
||||||
|
spritePixelsToUnits: 100
|
||||||
|
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
spriteGenerateFallbackPhysicsShape: 1
|
||||||
|
alphaUsage: 1
|
||||||
|
alphaIsTransparency: 0
|
||||||
|
spriteTessellationDetail: -1
|
||||||
|
textureType: 0
|
||||||
|
textureShape: 1
|
||||||
|
singleChannelComponent: 0
|
||||||
|
flipbookRows: 1
|
||||||
|
flipbookColumns: 1
|
||||||
|
maxTextureSizeSet: 0
|
||||||
|
compressionQualitySet: 0
|
||||||
|
textureFormatSet: 0
|
||||||
|
ignorePngGamma: 0
|
||||||
|
applyGammaDecoding: 0
|
||||||
|
swizzle: 50462976
|
||||||
|
cookieLightType: 0
|
||||||
|
platformSettings:
|
||||||
|
- serializedVersion: 4
|
||||||
|
buildTarget: DefaultTexturePlatform
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 4
|
||||||
|
buildTarget: Standalone
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 4
|
||||||
|
buildTarget: Android
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 4
|
||||||
|
buildTarget: WebGL
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
spriteSheet:
|
||||||
|
serializedVersion: 2
|
||||||
|
sprites: []
|
||||||
|
outline: []
|
||||||
|
customData:
|
||||||
|
physicsShape: []
|
||||||
|
bones: []
|
||||||
|
spriteID:
|
||||||
|
internalID: 0
|
||||||
|
vertices: []
|
||||||
|
indices:
|
||||||
|
edges: []
|
||||||
|
weights: []
|
||||||
|
secondaryTextures: []
|
||||||
|
spriteCustomMetadata:
|
||||||
|
entries: []
|
||||||
|
nameFileIdTable: {}
|
||||||
|
mipmapLimitGroupName:
|
||||||
|
pSDRemoveMatte: 0
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
BIN
Assets/Scripts/flakni_krtka/IMG_20260328_135259.jpg
Normal file
BIN
Assets/Scripts/flakni_krtka/IMG_20260328_135259.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 445 KiB |
143
Assets/Scripts/flakni_krtka/IMG_20260328_135259.jpg.meta
Normal file
143
Assets/Scripts/flakni_krtka/IMG_20260328_135259.jpg.meta
Normal file
@@ -0,0 +1,143 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: cceee56950c7401459666bef47923d19
|
||||||
|
TextureImporter:
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 13
|
||||||
|
mipmaps:
|
||||||
|
mipMapMode: 0
|
||||||
|
enableMipMap: 1
|
||||||
|
sRGBTexture: 1
|
||||||
|
linearTexture: 0
|
||||||
|
fadeOut: 0
|
||||||
|
borderMipMap: 0
|
||||||
|
mipMapsPreserveCoverage: 0
|
||||||
|
alphaTestReferenceValue: 0.5
|
||||||
|
mipMapFadeDistanceStart: 1
|
||||||
|
mipMapFadeDistanceEnd: 3
|
||||||
|
bumpmap:
|
||||||
|
convertToNormalMap: 0
|
||||||
|
externalNormalMap: 0
|
||||||
|
heightScale: 0.25
|
||||||
|
normalMapFilter: 0
|
||||||
|
flipGreenChannel: 0
|
||||||
|
isReadable: 0
|
||||||
|
streamingMipmaps: 0
|
||||||
|
streamingMipmapsPriority: 0
|
||||||
|
vTOnly: 0
|
||||||
|
ignoreMipmapLimit: 0
|
||||||
|
grayScaleToAlpha: 0
|
||||||
|
generateCubemap: 6
|
||||||
|
cubemapConvolution: 0
|
||||||
|
seamlessCubemap: 0
|
||||||
|
textureFormat: 1
|
||||||
|
maxTextureSize: 2048
|
||||||
|
textureSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
filterMode: 1
|
||||||
|
aniso: 1
|
||||||
|
mipBias: 0
|
||||||
|
wrapU: 0
|
||||||
|
wrapV: 0
|
||||||
|
wrapW: 0
|
||||||
|
nPOTScale: 1
|
||||||
|
lightmap: 0
|
||||||
|
compressionQuality: 50
|
||||||
|
spriteMode: 0
|
||||||
|
spriteExtrude: 1
|
||||||
|
spriteMeshType: 1
|
||||||
|
alignment: 0
|
||||||
|
spritePivot: {x: 0.5, y: 0.5}
|
||||||
|
spritePixelsToUnits: 100
|
||||||
|
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
spriteGenerateFallbackPhysicsShape: 1
|
||||||
|
alphaUsage: 1
|
||||||
|
alphaIsTransparency: 0
|
||||||
|
spriteTessellationDetail: -1
|
||||||
|
textureType: 0
|
||||||
|
textureShape: 1
|
||||||
|
singleChannelComponent: 0
|
||||||
|
flipbookRows: 1
|
||||||
|
flipbookColumns: 1
|
||||||
|
maxTextureSizeSet: 0
|
||||||
|
compressionQualitySet: 0
|
||||||
|
textureFormatSet: 0
|
||||||
|
ignorePngGamma: 0
|
||||||
|
applyGammaDecoding: 0
|
||||||
|
swizzle: 50462976
|
||||||
|
cookieLightType: 0
|
||||||
|
platformSettings:
|
||||||
|
- serializedVersion: 4
|
||||||
|
buildTarget: DefaultTexturePlatform
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 4
|
||||||
|
buildTarget: Standalone
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 4
|
||||||
|
buildTarget: Android
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 4
|
||||||
|
buildTarget: WebGL
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
spriteSheet:
|
||||||
|
serializedVersion: 2
|
||||||
|
sprites: []
|
||||||
|
outline: []
|
||||||
|
customData:
|
||||||
|
physicsShape: []
|
||||||
|
bones: []
|
||||||
|
spriteID:
|
||||||
|
internalID: 0
|
||||||
|
vertices: []
|
||||||
|
indices:
|
||||||
|
edges: []
|
||||||
|
weights: []
|
||||||
|
secondaryTextures: []
|
||||||
|
spriteCustomMetadata:
|
||||||
|
entries: []
|
||||||
|
nameFileIdTable: {}
|
||||||
|
mipmapLimitGroupName:
|
||||||
|
pSDRemoveMatte: 0
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
BIN
Assets/Scripts/flakni_krtka/IMG_20260328_135414.jpg
Normal file
BIN
Assets/Scripts/flakni_krtka/IMG_20260328_135414.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 288 KiB |
143
Assets/Scripts/flakni_krtka/IMG_20260328_135414.jpg.meta
Normal file
143
Assets/Scripts/flakni_krtka/IMG_20260328_135414.jpg.meta
Normal file
@@ -0,0 +1,143 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 092750ab36bdc1e4bac1db2fe155bb35
|
||||||
|
TextureImporter:
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 13
|
||||||
|
mipmaps:
|
||||||
|
mipMapMode: 0
|
||||||
|
enableMipMap: 1
|
||||||
|
sRGBTexture: 1
|
||||||
|
linearTexture: 0
|
||||||
|
fadeOut: 0
|
||||||
|
borderMipMap: 0
|
||||||
|
mipMapsPreserveCoverage: 0
|
||||||
|
alphaTestReferenceValue: 0.5
|
||||||
|
mipMapFadeDistanceStart: 1
|
||||||
|
mipMapFadeDistanceEnd: 3
|
||||||
|
bumpmap:
|
||||||
|
convertToNormalMap: 0
|
||||||
|
externalNormalMap: 0
|
||||||
|
heightScale: 0.25
|
||||||
|
normalMapFilter: 0
|
||||||
|
flipGreenChannel: 0
|
||||||
|
isReadable: 0
|
||||||
|
streamingMipmaps: 0
|
||||||
|
streamingMipmapsPriority: 0
|
||||||
|
vTOnly: 0
|
||||||
|
ignoreMipmapLimit: 0
|
||||||
|
grayScaleToAlpha: 0
|
||||||
|
generateCubemap: 6
|
||||||
|
cubemapConvolution: 0
|
||||||
|
seamlessCubemap: 0
|
||||||
|
textureFormat: 1
|
||||||
|
maxTextureSize: 2048
|
||||||
|
textureSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
filterMode: 1
|
||||||
|
aniso: 1
|
||||||
|
mipBias: 0
|
||||||
|
wrapU: 0
|
||||||
|
wrapV: 0
|
||||||
|
wrapW: 0
|
||||||
|
nPOTScale: 1
|
||||||
|
lightmap: 0
|
||||||
|
compressionQuality: 50
|
||||||
|
spriteMode: 0
|
||||||
|
spriteExtrude: 1
|
||||||
|
spriteMeshType: 1
|
||||||
|
alignment: 0
|
||||||
|
spritePivot: {x: 0.5, y: 0.5}
|
||||||
|
spritePixelsToUnits: 100
|
||||||
|
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
spriteGenerateFallbackPhysicsShape: 1
|
||||||
|
alphaUsage: 1
|
||||||
|
alphaIsTransparency: 0
|
||||||
|
spriteTessellationDetail: -1
|
||||||
|
textureType: 0
|
||||||
|
textureShape: 1
|
||||||
|
singleChannelComponent: 0
|
||||||
|
flipbookRows: 1
|
||||||
|
flipbookColumns: 1
|
||||||
|
maxTextureSizeSet: 0
|
||||||
|
compressionQualitySet: 0
|
||||||
|
textureFormatSet: 0
|
||||||
|
ignorePngGamma: 0
|
||||||
|
applyGammaDecoding: 0
|
||||||
|
swizzle: 50462976
|
||||||
|
cookieLightType: 0
|
||||||
|
platformSettings:
|
||||||
|
- serializedVersion: 4
|
||||||
|
buildTarget: DefaultTexturePlatform
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 4
|
||||||
|
buildTarget: Standalone
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 4
|
||||||
|
buildTarget: Android
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 4
|
||||||
|
buildTarget: WebGL
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
spriteSheet:
|
||||||
|
serializedVersion: 2
|
||||||
|
sprites: []
|
||||||
|
outline: []
|
||||||
|
customData:
|
||||||
|
physicsShape: []
|
||||||
|
bones: []
|
||||||
|
spriteID:
|
||||||
|
internalID: 0
|
||||||
|
vertices: []
|
||||||
|
indices:
|
||||||
|
edges: []
|
||||||
|
weights: []
|
||||||
|
secondaryTextures: []
|
||||||
|
spriteCustomMetadata:
|
||||||
|
entries: []
|
||||||
|
nameFileIdTable: {}
|
||||||
|
mipmapLimitGroupName:
|
||||||
|
pSDRemoveMatte: 0
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
113
Assets/Scripts/flakni_krtka/Krystof 2.prefab
Normal file
113
Assets/Scripts/flakni_krtka/Krystof 2.prefab
Normal file
@@ -0,0 +1,113 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1 &3482803472994744189
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 4606145862438615571}
|
||||||
|
- component: {fileID: 8159852936948661382}
|
||||||
|
- component: {fileID: 3709715220609332040}
|
||||||
|
- component: {fileID: 837426559564388989}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Krystof 2
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &4606145862438615571
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3482803472994744189}
|
||||||
|
serializedVersion: 2
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0.5, y: 0.35, z: 0.5}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!33 &8159852936948661382
|
||||||
|
MeshFilter:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3482803472994744189}
|
||||||
|
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
--- !u!23 &3709715220609332040
|
||||||
|
MeshRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3482803472994744189}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_CastShadows: 1
|
||||||
|
m_ReceiveShadows: 1
|
||||||
|
m_DynamicOccludee: 1
|
||||||
|
m_StaticShadowCaster: 0
|
||||||
|
m_MotionVectors: 1
|
||||||
|
m_LightProbeUsage: 1
|
||||||
|
m_ReflectionProbeUsage: 1
|
||||||
|
m_RayTracingMode: 2
|
||||||
|
m_RayTraceProcedural: 0
|
||||||
|
m_RayTracingAccelStructBuildFlagsOverride: 0
|
||||||
|
m_RayTracingAccelStructBuildFlags: 1
|
||||||
|
m_SmallMeshCulling: 1
|
||||||
|
m_ForceMeshLod: -1
|
||||||
|
m_MeshLodSelectionBias: 0
|
||||||
|
m_RenderingLayerMask: 1
|
||||||
|
m_RendererPriority: 0
|
||||||
|
m_Materials:
|
||||||
|
- {fileID: 2100000, guid: 1cfc042826da9cb46bd6223104a47122, type: 2}
|
||||||
|
m_StaticBatchInfo:
|
||||||
|
firstSubMesh: 0
|
||||||
|
subMeshCount: 0
|
||||||
|
m_StaticBatchRoot: {fileID: 0}
|
||||||
|
m_ProbeAnchor: {fileID: 0}
|
||||||
|
m_LightProbeVolumeOverride: {fileID: 0}
|
||||||
|
m_ScaleInLightmap: 1
|
||||||
|
m_ReceiveGI: 1
|
||||||
|
m_PreserveUVs: 0
|
||||||
|
m_IgnoreNormalsForChartDetection: 0
|
||||||
|
m_ImportantGI: 0
|
||||||
|
m_StitchLightmapSeams: 1
|
||||||
|
m_SelectedEditorRenderState: 3
|
||||||
|
m_MinimumChartSize: 4
|
||||||
|
m_AutoUVMaxDistance: 0.5
|
||||||
|
m_AutoUVMaxAngle: 89
|
||||||
|
m_LightmapParameters: {fileID: 0}
|
||||||
|
m_GlobalIlluminationMeshLod: 0
|
||||||
|
m_SortingLayerID: 0
|
||||||
|
m_SortingLayer: 0
|
||||||
|
m_SortingOrder: 0
|
||||||
|
m_AdditionalVertexStreams: {fileID: 0}
|
||||||
|
--- !u!65 &837426559564388989
|
||||||
|
BoxCollider:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3482803472994744189}
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_IncludeLayers:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 0
|
||||||
|
m_ExcludeLayers:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 0
|
||||||
|
m_LayerOverridePriority: 0
|
||||||
|
m_IsTrigger: 0
|
||||||
|
m_ProvidesContacts: 0
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 3
|
||||||
|
m_Size: {x: 1, y: 1, z: 1}
|
||||||
|
m_Center: {x: 0, y: 0, z: 0}
|
||||||
7
Assets/Scripts/flakni_krtka/Krystof 2.prefab.meta
Normal file
7
Assets/Scripts/flakni_krtka/Krystof 2.prefab.meta
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 7805d7725b9546e45a3a3c86c696b946
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
113
Assets/Scripts/flakni_krtka/Lukas.prefab
Normal file
113
Assets/Scripts/flakni_krtka/Lukas.prefab
Normal file
@@ -0,0 +1,113 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1 &3482803472994744189
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 4606145862438615571}
|
||||||
|
- component: {fileID: 8159852936948661382}
|
||||||
|
- component: {fileID: 3709715220609332040}
|
||||||
|
- component: {fileID: 837426559564388989}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Lukas
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &4606145862438615571
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3482803472994744189}
|
||||||
|
serializedVersion: 2
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0.5, y: 0.35, z: 0.5}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!33 &8159852936948661382
|
||||||
|
MeshFilter:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3482803472994744189}
|
||||||
|
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
--- !u!23 &3709715220609332040
|
||||||
|
MeshRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3482803472994744189}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_CastShadows: 1
|
||||||
|
m_ReceiveShadows: 1
|
||||||
|
m_DynamicOccludee: 1
|
||||||
|
m_StaticShadowCaster: 0
|
||||||
|
m_MotionVectors: 1
|
||||||
|
m_LightProbeUsage: 1
|
||||||
|
m_ReflectionProbeUsage: 1
|
||||||
|
m_RayTracingMode: 2
|
||||||
|
m_RayTraceProcedural: 0
|
||||||
|
m_RayTracingAccelStructBuildFlagsOverride: 0
|
||||||
|
m_RayTracingAccelStructBuildFlags: 1
|
||||||
|
m_SmallMeshCulling: 1
|
||||||
|
m_ForceMeshLod: -1
|
||||||
|
m_MeshLodSelectionBias: 0
|
||||||
|
m_RenderingLayerMask: 1
|
||||||
|
m_RendererPriority: 0
|
||||||
|
m_Materials:
|
||||||
|
- {fileID: 2100000, guid: afba70a3bc8c33d479bc3681f73aea02, type: 2}
|
||||||
|
m_StaticBatchInfo:
|
||||||
|
firstSubMesh: 0
|
||||||
|
subMeshCount: 0
|
||||||
|
m_StaticBatchRoot: {fileID: 0}
|
||||||
|
m_ProbeAnchor: {fileID: 0}
|
||||||
|
m_LightProbeVolumeOverride: {fileID: 0}
|
||||||
|
m_ScaleInLightmap: 1
|
||||||
|
m_ReceiveGI: 1
|
||||||
|
m_PreserveUVs: 0
|
||||||
|
m_IgnoreNormalsForChartDetection: 0
|
||||||
|
m_ImportantGI: 0
|
||||||
|
m_StitchLightmapSeams: 1
|
||||||
|
m_SelectedEditorRenderState: 3
|
||||||
|
m_MinimumChartSize: 4
|
||||||
|
m_AutoUVMaxDistance: 0.5
|
||||||
|
m_AutoUVMaxAngle: 89
|
||||||
|
m_LightmapParameters: {fileID: 0}
|
||||||
|
m_GlobalIlluminationMeshLod: 0
|
||||||
|
m_SortingLayerID: 0
|
||||||
|
m_SortingLayer: 0
|
||||||
|
m_SortingOrder: 0
|
||||||
|
m_AdditionalVertexStreams: {fileID: 0}
|
||||||
|
--- !u!65 &837426559564388989
|
||||||
|
BoxCollider:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3482803472994744189}
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_IncludeLayers:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 0
|
||||||
|
m_ExcludeLayers:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 0
|
||||||
|
m_LayerOverridePriority: 0
|
||||||
|
m_IsTrigger: 0
|
||||||
|
m_ProvidesContacts: 0
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 3
|
||||||
|
m_Size: {x: 1, y: 1, z: 1}
|
||||||
|
m_Center: {x: 0, y: 0, z: 0}
|
||||||
7
Assets/Scripts/flakni_krtka/Lukas.prefab.meta
Normal file
7
Assets/Scripts/flakni_krtka/Lukas.prefab.meta
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 59d345d67d954504a90ff6c6b66334e5
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
8
Assets/Scripts/flakni_krtka/Materials.meta
Normal file
8
Assets/Scripts/flakni_krtka/Materials.meta
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: ad2a8bbd43722d640a5af0c7b9a1e43f
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,84 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!21 &2100000
|
||||||
|
Material:
|
||||||
|
serializedVersion: 8
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: IMG_20260328_135248
|
||||||
|
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_Parent: {fileID: 0}
|
||||||
|
m_ModifiedSerializedProperties: 0
|
||||||
|
m_ValidKeywords: []
|
||||||
|
m_InvalidKeywords: []
|
||||||
|
m_LightmapFlags: 4
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: -1
|
||||||
|
stringTagMap: {}
|
||||||
|
disabledShaderPasses: []
|
||||||
|
m_LockedProperties:
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _BumpMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailAlbedoMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailMask:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailNormalMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _EmissionMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MainTex:
|
||||||
|
m_Texture: {fileID: 2800000, guid: 0eece0f08622a7449b81ecc0b14b344a, type: 3}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MetallicGlossMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _OcclusionMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _ParallaxMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Ints: []
|
||||||
|
m_Floats:
|
||||||
|
- _BumpScale: 1
|
||||||
|
- _Cutoff: 0.5
|
||||||
|
- _DetailNormalMapScale: 1
|
||||||
|
- _DstBlend: 0
|
||||||
|
- _GlossMapScale: 1
|
||||||
|
- _Glossiness: 0.5
|
||||||
|
- _GlossyReflections: 1
|
||||||
|
- _Metallic: 0
|
||||||
|
- _Mode: 0
|
||||||
|
- _OcclusionStrength: 1
|
||||||
|
- _Parallax: 0.02
|
||||||
|
- _SmoothnessTextureChannel: 0
|
||||||
|
- _SpecularHighlights: 1
|
||||||
|
- _SrcBlend: 1
|
||||||
|
- _UVSec: 0
|
||||||
|
- _ZWrite: 1
|
||||||
|
m_Colors:
|
||||||
|
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
m_BuildTextureStacks: []
|
||||||
|
m_AllowLocking: 1
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 1cfc042826da9cb46bd6223104a47122
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 2100000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,84 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!21 &2100000
|
||||||
|
Material:
|
||||||
|
serializedVersion: 8
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: IMG_20260328_135259
|
||||||
|
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_Parent: {fileID: 0}
|
||||||
|
m_ModifiedSerializedProperties: 0
|
||||||
|
m_ValidKeywords: []
|
||||||
|
m_InvalidKeywords: []
|
||||||
|
m_LightmapFlags: 4
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: -1
|
||||||
|
stringTagMap: {}
|
||||||
|
disabledShaderPasses: []
|
||||||
|
m_LockedProperties:
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _BumpMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailAlbedoMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailMask:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailNormalMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _EmissionMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MainTex:
|
||||||
|
m_Texture: {fileID: 2800000, guid: cceee56950c7401459666bef47923d19, type: 3}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MetallicGlossMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _OcclusionMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _ParallaxMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Ints: []
|
||||||
|
m_Floats:
|
||||||
|
- _BumpScale: 1
|
||||||
|
- _Cutoff: 0.5
|
||||||
|
- _DetailNormalMapScale: 1
|
||||||
|
- _DstBlend: 0
|
||||||
|
- _GlossMapScale: 1
|
||||||
|
- _Glossiness: 0.5
|
||||||
|
- _GlossyReflections: 1
|
||||||
|
- _Metallic: 0
|
||||||
|
- _Mode: 0
|
||||||
|
- _OcclusionStrength: 1
|
||||||
|
- _Parallax: 0.02
|
||||||
|
- _SmoothnessTextureChannel: 0
|
||||||
|
- _SpecularHighlights: 1
|
||||||
|
- _SrcBlend: 1
|
||||||
|
- _UVSec: 0
|
||||||
|
- _ZWrite: 1
|
||||||
|
m_Colors:
|
||||||
|
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
m_BuildTextureStacks: []
|
||||||
|
m_AllowLocking: 1
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: b82ca45325e26014eb975de2543510c7
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 2100000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,84 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!21 &2100000
|
||||||
|
Material:
|
||||||
|
serializedVersion: 8
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: IMG_20260328_135414
|
||||||
|
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_Parent: {fileID: 0}
|
||||||
|
m_ModifiedSerializedProperties: 0
|
||||||
|
m_ValidKeywords: []
|
||||||
|
m_InvalidKeywords: []
|
||||||
|
m_LightmapFlags: 4
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: -1
|
||||||
|
stringTagMap: {}
|
||||||
|
disabledShaderPasses: []
|
||||||
|
m_LockedProperties:
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _BumpMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailAlbedoMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailMask:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailNormalMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _EmissionMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MainTex:
|
||||||
|
m_Texture: {fileID: 2800000, guid: 092750ab36bdc1e4bac1db2fe155bb35, type: 3}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MetallicGlossMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _OcclusionMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _ParallaxMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Ints: []
|
||||||
|
m_Floats:
|
||||||
|
- _BumpScale: 1
|
||||||
|
- _Cutoff: 0.5
|
||||||
|
- _DetailNormalMapScale: 1
|
||||||
|
- _DstBlend: 0
|
||||||
|
- _GlossMapScale: 1
|
||||||
|
- _Glossiness: 0.5
|
||||||
|
- _GlossyReflections: 1
|
||||||
|
- _Metallic: 0
|
||||||
|
- _Mode: 0
|
||||||
|
- _OcclusionStrength: 1
|
||||||
|
- _Parallax: 0.02
|
||||||
|
- _SmoothnessTextureChannel: 0
|
||||||
|
- _SpecularHighlights: 1
|
||||||
|
- _SrcBlend: 1
|
||||||
|
- _UVSec: 0
|
||||||
|
- _ZWrite: 1
|
||||||
|
m_Colors:
|
||||||
|
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
m_BuildTextureStacks: []
|
||||||
|
m_AllowLocking: 1
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: afba70a3bc8c33d479bc3681f73aea02
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 2100000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
8
Assets/Scripts/flappy_bird - přejmenovat.meta
Normal file
8
Assets/Scripts/flappy_bird - přejmenovat.meta
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 078ea16f7b9620d4f839c1d44f968b45
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
214
Assets/Scripts/flappy_bird - přejmenovat/flappy bird.cs
Normal file
214
Assets/Scripts/flappy_bird - přejmenovat/flappy bird.cs
Normal file
@@ -0,0 +1,214 @@
|
|||||||
|
using System;
|
||||||
|
using UnityEngine;
|
||||||
|
using UnityEngine.SceneManagement;
|
||||||
|
using TMPro;
|
||||||
|
|
||||||
|
public class FlappyBirdAllInOne : MonoBehaviour, ITask
|
||||||
|
{
|
||||||
|
|
||||||
|
[Header("Player")]
|
||||||
|
public Rigidbody2D rb;
|
||||||
|
public float jumpForce = 5f;
|
||||||
|
public bool isDead = false;
|
||||||
|
|
||||||
|
|
||||||
|
[Header("Pipes")]
|
||||||
|
public GameObject pipePrefab;
|
||||||
|
public Transform spawnPoint;
|
||||||
|
public float spawnRate = 2f;
|
||||||
|
public float heightOffset = 2f;
|
||||||
|
public float pipeSpeed = 2f;
|
||||||
|
|
||||||
|
private float timer = 0;
|
||||||
|
|
||||||
|
|
||||||
|
[Header("UI")]
|
||||||
|
public TextMeshProUGUI scoreText;
|
||||||
|
public GameObject gameOverPanel;
|
||||||
|
|
||||||
|
private int score = 0;
|
||||||
|
|
||||||
|
|
||||||
|
private Action<ITask> _onCompleted;
|
||||||
|
private Action<ITask> _onExit;
|
||||||
|
|
||||||
|
public string TaskID { get; set; }
|
||||||
|
public TaskType TaskType { get; set; }
|
||||||
|
public string TaskName { get; set; }
|
||||||
|
public (double, double) TaskLocation { get; set; }
|
||||||
|
public bool IsCompleted { get; private set; }
|
||||||
|
|
||||||
|
|
||||||
|
void Start()
|
||||||
|
{
|
||||||
|
Time.timeScale = 1f;
|
||||||
|
score = 0;
|
||||||
|
UpdateScore();
|
||||||
|
}
|
||||||
|
|
||||||
|
void Update()
|
||||||
|
{
|
||||||
|
if (isDead) return;
|
||||||
|
|
||||||
|
HandleInput();
|
||||||
|
HandleSpawning();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void HandleInput()
|
||||||
|
{
|
||||||
|
if (Input.GetMouseButtonDown(0))
|
||||||
|
{
|
||||||
|
Jump();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void Jump()
|
||||||
|
{
|
||||||
|
rb.linearVelocity = Vector2.zero;
|
||||||
|
rb.AddForce(Vector2.up * jumpForce, ForceMode2D.Impulse);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void HandleSpawning()
|
||||||
|
{
|
||||||
|
timer += Time.deltaTime;
|
||||||
|
|
||||||
|
if (timer >= spawnRate)
|
||||||
|
{
|
||||||
|
SpawnPipe();
|
||||||
|
timer = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void SpawnPipe()
|
||||||
|
{
|
||||||
|
float yOffset = UnityEngine.Random.Range(-heightOffset, heightOffset);
|
||||||
|
|
||||||
|
GameObject pipe = Instantiate(
|
||||||
|
pipePrefab,
|
||||||
|
spawnPoint.position + new Vector3(0, yOffset, 0),
|
||||||
|
Quaternion.identity
|
||||||
|
);
|
||||||
|
|
||||||
|
pipe.AddComponent<PipeMover>().Init(pipeSpeed, this);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void AddScore()
|
||||||
|
{
|
||||||
|
score++;
|
||||||
|
UpdateScore();
|
||||||
|
}
|
||||||
|
|
||||||
|
void UpdateScore()
|
||||||
|
{
|
||||||
|
scoreText.text = score.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void GameOver()
|
||||||
|
{
|
||||||
|
isDead = true;
|
||||||
|
gameOverPanel.SetActive(true);
|
||||||
|
Time.timeScale = 0f;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Restart()
|
||||||
|
{
|
||||||
|
Time.timeScale = 1f;
|
||||||
|
SceneManager.LoadScene(SceneManager.GetActiveScene().name);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private void OnCollisionEnter2D(Collision2D collision)
|
||||||
|
{
|
||||||
|
GameOver();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Initialize(Action<ITask> onCompleted)
|
||||||
|
{
|
||||||
|
IsCompleted = false;
|
||||||
|
_onCompleted = onCompleted;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Complete()
|
||||||
|
{
|
||||||
|
if (IsCompleted) return;
|
||||||
|
|
||||||
|
IsCompleted = true;
|
||||||
|
_onCompleted?.Invoke(this);
|
||||||
|
ExitTask(_onExit);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void ExitTask(Action<ITask> onExit)
|
||||||
|
{
|
||||||
|
onExit?.Invoke(this);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public class PipeMover : MonoBehaviour
|
||||||
|
{
|
||||||
|
private float speed;
|
||||||
|
private FlappyBirdAllInOne game;
|
||||||
|
|
||||||
|
public void Init(float moveSpeed, FlappyBirdAllInOne gm)
|
||||||
|
{
|
||||||
|
speed = moveSpeed;
|
||||||
|
game = gm;
|
||||||
|
}
|
||||||
|
|
||||||
|
void Update()
|
||||||
|
{
|
||||||
|
transform.position += Vector3.left * speed * Time.deltaTime;
|
||||||
|
|
||||||
|
if (transform.position.x < -10f)
|
||||||
|
{
|
||||||
|
Destroy(gameObject);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public class ScoreTrigger : MonoBehaviour
|
||||||
|
{
|
||||||
|
private void OnTriggerEnter2D(Collider2D collision)
|
||||||
|
{
|
||||||
|
FlappyBirdAllInOne gm = FindObjectOfType<FlappyBirdAllInOne>();
|
||||||
|
|
||||||
|
if (collision.CompareTag("Player") && gm != null)
|
||||||
|
{
|
||||||
|
gm.AddScore();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// =====================
|
||||||
|
// navod pro desing t<>m
|
||||||
|
// =====================
|
||||||
|
/*
|
||||||
|
1. Player:
|
||||||
|
- Sprite + Rigidbody2D (Gravity ~2-3)
|
||||||
|
- BoxCollider2D
|
||||||
|
- PlayerController script
|
||||||
|
- Tag = Player
|
||||||
|
|
||||||
|
2. Pipes:
|
||||||
|
- Prefab se 2 kolidery (top/bottom)
|
||||||
|
- Mezera mezi nimi
|
||||||
|
- PipeMove script
|
||||||
|
|
||||||
|
3. Score Zone:
|
||||||
|
- Trigger collider mezi trubkami
|
||||||
|
- ScoreZone script
|
||||||
|
|
||||||
|
4. Spawner:
|
||||||
|
- Empty GameObject
|
||||||
|
- PipeSpawner script
|
||||||
|
|
||||||
|
5. UI:
|
||||||
|
- TextMeshPro pro score
|
||||||
|
- GameOver panel + restart button
|
||||||
|
|
||||||
|
6. Mobile:
|
||||||
|
- Input.GetMouseButtonDown funguje i na tap
|
||||||
|
*/
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 19096191e142d154e956c7169cca9a1e
|
||||||
8
Assets/Scripts/hod_veci_do_diry.meta
Normal file
8
Assets/Scripts/hod_veci_do_diry.meta
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 9bee8d2d15f48de4c86e3b983e5d1ca6
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
133
Assets/Scripts/hod_veci_do_diry/DraggableObject.cs
Normal file
133
Assets/Scripts/hod_veci_do_diry/DraggableObject.cs
Normal file
@@ -0,0 +1,133 @@
|
|||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
[RequireComponent(typeof(Rigidbody2D))]
|
||||||
|
[RequireComponent(typeof(Collider2D))]
|
||||||
|
public class DraggableObject : MonoBehaviour
|
||||||
|
{
|
||||||
|
[Header("Přetahování")]
|
||||||
|
public float dragSmoothness = 15f;
|
||||||
|
|
||||||
|
[Header("Vizuální zpětná vazba")]
|
||||||
|
public SpriteRenderer spriteRenderer;
|
||||||
|
public Color normalColor = Color.white;
|
||||||
|
public Color dragColor = new Color(1f, 1f, 0.5f);
|
||||||
|
public float scaleOnDrag = 1.15f;
|
||||||
|
|
||||||
|
private Rigidbody2D rb;
|
||||||
|
private Camera mainCamera;
|
||||||
|
private bool isDragging = false;
|
||||||
|
private Vector3 targetPosition;
|
||||||
|
private Vector3 originalScale;
|
||||||
|
private bool hasBeenScored = false;
|
||||||
|
|
||||||
|
void Awake()
|
||||||
|
{
|
||||||
|
rb = GetComponent<Rigidbody2D>();
|
||||||
|
mainCamera = Camera.main;
|
||||||
|
originalScale = transform.localScale;
|
||||||
|
|
||||||
|
if (spriteRenderer == null)
|
||||||
|
spriteRenderer = GetComponent<SpriteRenderer>();
|
||||||
|
}
|
||||||
|
|
||||||
|
void Start()
|
||||||
|
{
|
||||||
|
rb.gravityScale = 0f;
|
||||||
|
rb.constraints = RigidbodyConstraints2D.FreezeRotation;
|
||||||
|
targetPosition = transform.position;
|
||||||
|
}
|
||||||
|
|
||||||
|
void Update()
|
||||||
|
{
|
||||||
|
HandleInput();
|
||||||
|
|
||||||
|
if (isDragging)
|
||||||
|
transform.position = Vector3.Lerp(transform.position, targetPosition, Time.deltaTime * dragSmoothness);
|
||||||
|
}
|
||||||
|
|
||||||
|
void HandleInput()
|
||||||
|
{
|
||||||
|
|
||||||
|
if (Input.touchCount > 0)
|
||||||
|
{
|
||||||
|
Touch touch = Input.GetTouch(0);
|
||||||
|
Vector3 worldPos = mainCamera.ScreenToWorldPoint(new Vector3(touch.position.x, touch.position.y, 10f));
|
||||||
|
|
||||||
|
if (touch.phase == TouchPhase.Began) TryStartDrag(worldPos);
|
||||||
|
else if (touch.phase == TouchPhase.Moved ||
|
||||||
|
touch.phase == TouchPhase.Stationary) { if (isDragging) targetPosition = worldPos; }
|
||||||
|
else if (touch.phase == TouchPhase.Ended ||
|
||||||
|
touch.phase == TouchPhase.Canceled) { if (isDragging) EndDrag(); }
|
||||||
|
}
|
||||||
|
// na twest pro myŠ
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Vector3 worldPos = mainCamera.ScreenToWorldPoint(new Vector3(Input.mousePosition.x, Input.mousePosition.y, 10f));
|
||||||
|
|
||||||
|
if (Input.GetMouseButtonDown(0)) TryStartDrag(worldPos);
|
||||||
|
else if (Input.GetMouseButton(0) && isDragging) targetPosition = worldPos;
|
||||||
|
else if (Input.GetMouseButtonUp(0) && isDragging) EndDrag();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void TryStartDrag(Vector3 worldPos)
|
||||||
|
{
|
||||||
|
if (GetComponent<Collider2D>().OverlapPoint(worldPos))
|
||||||
|
StartDrag(worldPos);
|
||||||
|
}
|
||||||
|
|
||||||
|
void StartDrag(Vector3 worldPos)
|
||||||
|
{
|
||||||
|
isDragging = true;
|
||||||
|
rb.linearVelocity = Vector2.zero;
|
||||||
|
targetPosition = worldPos;
|
||||||
|
|
||||||
|
transform.localScale = originalScale * scaleOnDrag;
|
||||||
|
if (spriteRenderer != null)
|
||||||
|
{
|
||||||
|
spriteRenderer.color = dragColor;
|
||||||
|
spriteRenderer.sortingOrder = 10;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void EndDrag()
|
||||||
|
{
|
||||||
|
isDragging = false;
|
||||||
|
transform.localScale = originalScale;
|
||||||
|
if (spriteRenderer != null)
|
||||||
|
{
|
||||||
|
spriteRenderer.color = normalColor;
|
||||||
|
spriteRenderer.sortingOrder = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void OnScored()
|
||||||
|
{
|
||||||
|
if (hasBeenScored) return;
|
||||||
|
hasBeenScored = true;
|
||||||
|
isDragging = false;
|
||||||
|
|
||||||
|
StartCoroutine(SinkIntoHole());
|
||||||
|
}
|
||||||
|
|
||||||
|
System.Collections.IEnumerator SinkIntoHole()
|
||||||
|
{
|
||||||
|
float duration = 0.35f;
|
||||||
|
float elapsed = 0f;
|
||||||
|
Vector3 startScale = transform.localScale;
|
||||||
|
|
||||||
|
while (elapsed < duration)
|
||||||
|
{
|
||||||
|
elapsed += Time.deltaTime;
|
||||||
|
float t = elapsed / duration;
|
||||||
|
transform.localScale = Vector3.Lerp(startScale, Vector3.zero, t);
|
||||||
|
if (spriteRenderer != null)
|
||||||
|
spriteRenderer.color = new Color(normalColor.r, normalColor.g, normalColor.b, 1f - t);
|
||||||
|
yield return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
gameObject.SetActive(false);
|
||||||
|
|
||||||
|
LevelManager.Instance?.RegisterItem();
|
||||||
|
}
|
||||||
|
}
|
||||||
2
Assets/Scripts/hod_veci_do_diry/DraggableObject.cs.meta
Normal file
2
Assets/Scripts/hod_veci_do_diry/DraggableObject.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: fb5157d7cd78450439c40cd6f5afe6ac
|
||||||
105
Assets/Scripts/hod_veci_do_diry/Hole.cs
Normal file
105
Assets/Scripts/hod_veci_do_diry/Hole.cs
Normal file
@@ -0,0 +1,105 @@
|
|||||||
|
using UnityEngine;
|
||||||
|
using System.Collections;
|
||||||
|
|
||||||
|
public class Hole : MonoBehaviour
|
||||||
|
{
|
||||||
|
[Header("Nastavení")]
|
||||||
|
[Tooltip("Poloměr zachycení – do kolika jednotek od středu se item 'vtáhne'")]
|
||||||
|
public float catchRadius = 0.6f;
|
||||||
|
|
||||||
|
[Tooltip("Síla vtahování itemu k díře")]
|
||||||
|
public float pullForce = 4f;
|
||||||
|
|
||||||
|
[Header("Pohyb díry (volitelné)")]
|
||||||
|
public bool hasMovement = false;
|
||||||
|
public float moveSpeed = 2f;
|
||||||
|
public Vector2 moveRange = new Vector2(1.5f, 0f);
|
||||||
|
|
||||||
|
[Header("Vizuál")]
|
||||||
|
public SpriteRenderer glowRenderer;
|
||||||
|
|
||||||
|
private Vector3 startPosition;
|
||||||
|
private bool isGlowing = false;
|
||||||
|
|
||||||
|
void Awake()
|
||||||
|
{
|
||||||
|
startPosition = transform.position;
|
||||||
|
|
||||||
|
CircleCollider2D col = GetComponent<CircleCollider2D>();
|
||||||
|
if (col != null)
|
||||||
|
{
|
||||||
|
col.isTrigger = true;
|
||||||
|
col.radius = catchRadius;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void Update()
|
||||||
|
{
|
||||||
|
if (hasMovement)
|
||||||
|
{
|
||||||
|
float x = startPosition.x + Mathf.Sin(Time.time * moveSpeed) * moveRange.x;
|
||||||
|
float y = startPosition.y + Mathf.Cos(Time.time * moveSpeed * 0.7f) * moveRange.y;
|
||||||
|
transform.position = new Vector3(x, y, transform.position.z);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void OnTriggerStay2D(Collider2D other)
|
||||||
|
{
|
||||||
|
DraggableObject draggable = other.GetComponent<DraggableObject>();
|
||||||
|
if (draggable == null) return;
|
||||||
|
|
||||||
|
float dist = Vector2.Distance(transform.position, other.transform.position);
|
||||||
|
|
||||||
|
|
||||||
|
Rigidbody2D rb = other.GetComponent<Rigidbody2D>();
|
||||||
|
if (rb != null)
|
||||||
|
{
|
||||||
|
Vector2 dir = ((Vector2)transform.position - rb.position).normalized;
|
||||||
|
rb.AddForce(dir * pullForce * Time.fixedDeltaTime, ForceMode2D.Impulse);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if (dist < catchRadius * 0.4f)
|
||||||
|
{
|
||||||
|
draggable.OnScored();
|
||||||
|
SetGlow(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void OnTriggerEnter2D(Collider2D other)
|
||||||
|
{
|
||||||
|
if (other.GetComponent<DraggableObject>() != null) SetGlow(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
void OnTriggerExit2D(Collider2D other)
|
||||||
|
{
|
||||||
|
if (other.GetComponent<DraggableObject>() != null) SetGlow(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
void SetGlow(bool active)
|
||||||
|
{
|
||||||
|
isGlowing = active;
|
||||||
|
if (glowRenderer == null) return;
|
||||||
|
glowRenderer.enabled = active;
|
||||||
|
if (active) StartCoroutine(PulseGlow());
|
||||||
|
}
|
||||||
|
|
||||||
|
IEnumerator PulseGlow()
|
||||||
|
{
|
||||||
|
while (isGlowing && glowRenderer != null)
|
||||||
|
{
|
||||||
|
float t = Mathf.PingPong(Time.time * 3f, 1f);
|
||||||
|
Color c = glowRenderer.color;
|
||||||
|
glowRenderer.color = new Color(c.r, c.g, c.b, Mathf.Lerp(0.3f, 0.9f, t));
|
||||||
|
yield return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void OnDrawGizmosSelected()
|
||||||
|
{
|
||||||
|
Gizmos.color = Color.green;
|
||||||
|
Gizmos.DrawWireSphere(transform.position, catchRadius);
|
||||||
|
Gizmos.color = Color.yellow;
|
||||||
|
Gizmos.DrawWireSphere(transform.position, catchRadius * 0.4f);
|
||||||
|
}
|
||||||
|
}
|
||||||
2
Assets/Scripts/hod_veci_do_diry/Hole.cs.meta
Normal file
2
Assets/Scripts/hod_veci_do_diry/Hole.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: ca7423fcca5f83249a2574cd84b7f806
|
||||||
41
Assets/Scripts/hod_veci_do_diry/LevelManager.cs
Normal file
41
Assets/Scripts/hod_veci_do_diry/LevelManager.cs
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
using UnityEngine;
|
||||||
|
using UnityEngine.Events;
|
||||||
|
|
||||||
|
public class LevelManager : MonoBehaviour
|
||||||
|
{
|
||||||
|
public static LevelManager Instance;
|
||||||
|
|
||||||
|
[Header("Nastavení levelu")]
|
||||||
|
[Tooltip("Kolik itemů musí hráč trefit pro splnění levelu")]
|
||||||
|
public int itemsToScore = 3;
|
||||||
|
|
||||||
|
[Header("Event – vyvolá se po trefení všech itemů")]
|
||||||
|
public UnityEvent OnAllItemsScored;
|
||||||
|
|
||||||
|
private int scoredCount = 0;
|
||||||
|
|
||||||
|
void Awake()
|
||||||
|
{
|
||||||
|
if (Instance == null) Instance = this;
|
||||||
|
else Destroy(gameObject);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void RegisterItem()
|
||||||
|
{
|
||||||
|
scoredCount++;
|
||||||
|
Debug.Log($"Trefeno: {scoredCount} / {itemsToScore}");
|
||||||
|
|
||||||
|
if (scoredCount >= itemsToScore)
|
||||||
|
{
|
||||||
|
OnAllItemsScored?.Invoke();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void ResetCounter()
|
||||||
|
{
|
||||||
|
scoredCount = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int GetScoredCount() => scoredCount;
|
||||||
|
public int GetTotalCount() => itemsToScore;
|
||||||
|
}
|
||||||
2
Assets/Scripts/hod_veci_do_diry/LevelManager.cs.meta
Normal file
2
Assets/Scripts/hod_veci_do_diry/LevelManager.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: a819c02c3679b5a449b41052d2e6b3c9
|
||||||
113
Assets/Scripts/hod_veci_do_diry/ObjectSpawner.cs
Normal file
113
Assets/Scripts/hod_veci_do_diry/ObjectSpawner.cs
Normal file
@@ -0,0 +1,113 @@
|
|||||||
|
using UnityEngine;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public class ObjectSpawner : MonoBehaviour
|
||||||
|
{
|
||||||
|
public static ObjectSpawner Instance;
|
||||||
|
|
||||||
|
[Header("Prefaby")]
|
||||||
|
public GameObject[] objectPrefabs;
|
||||||
|
public GameObject holePrefab;
|
||||||
|
|
||||||
|
[Header("Počty")]
|
||||||
|
[Tooltip("Kolik předmětů spawnovat")]
|
||||||
|
public int objectCount = 3;
|
||||||
|
[Tooltip("Kolik děr spawnovat")]
|
||||||
|
public int holeCount = 1;
|
||||||
|
|
||||||
|
[Header("Pohyb děr")]
|
||||||
|
public bool holesMove = false;
|
||||||
|
public float holeMoveSpeed = 2f;
|
||||||
|
|
||||||
|
[Header("Spawn hranice (odpovídají kameře)")]
|
||||||
|
public float minX = -3.5f;
|
||||||
|
public float maxX = 3.5f;
|
||||||
|
public float minY = -5f;
|
||||||
|
public float maxY = 4f;
|
||||||
|
|
||||||
|
[Header("Rodiče pro přehlednost (volitelné)")]
|
||||||
|
public Transform objectParent;
|
||||||
|
public Transform holeParent;
|
||||||
|
|
||||||
|
private List<GameObject> spawnedObjects = new List<GameObject>();
|
||||||
|
private List<GameObject> spawnedHoles = new List<GameObject>();
|
||||||
|
|
||||||
|
void Awake()
|
||||||
|
{
|
||||||
|
if (Instance == null) Instance = this;
|
||||||
|
else Destroy(gameObject);
|
||||||
|
}
|
||||||
|
|
||||||
|
void Start()
|
||||||
|
{
|
||||||
|
Spawn();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Spawn()
|
||||||
|
{
|
||||||
|
Clear();
|
||||||
|
|
||||||
|
// LevelManager na aktuální počet
|
||||||
|
if (LevelManager.Instance != null)
|
||||||
|
{
|
||||||
|
LevelManager.Instance.itemsToScore = objectCount;
|
||||||
|
LevelManager.Instance.ResetCounter();
|
||||||
|
}
|
||||||
|
|
||||||
|
SpawnHoles();
|
||||||
|
SpawnObjects();
|
||||||
|
}
|
||||||
|
|
||||||
|
void SpawnHoles()
|
||||||
|
{
|
||||||
|
for (int i = 0; i < holeCount; i++)
|
||||||
|
{
|
||||||
|
Vector2 pos = RandomPos(1f);
|
||||||
|
GameObject hole = Instantiate(holePrefab, pos, Quaternion.identity, holeParent);
|
||||||
|
|
||||||
|
Hole h = hole.GetComponent<Hole>();
|
||||||
|
if (h != null && holesMove)
|
||||||
|
{
|
||||||
|
h.hasMovement = true;
|
||||||
|
h.moveSpeed = holeMoveSpeed;
|
||||||
|
h.moveRange = new Vector2(Random.Range(0.8f, 1.8f), 0f);
|
||||||
|
}
|
||||||
|
|
||||||
|
spawnedHoles.Add(hole);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void SpawnObjects()
|
||||||
|
{
|
||||||
|
for (int i = 0; i < objectCount; i++)
|
||||||
|
{
|
||||||
|
GameObject prefab = objectPrefabs[Random.Range(0, objectPrefabs.Length)];
|
||||||
|
Vector2 pos = RandomPos(0.5f);
|
||||||
|
GameObject obj = Instantiate(prefab, pos, Quaternion.identity, objectParent);
|
||||||
|
|
||||||
|
// Náhodná barva
|
||||||
|
SpriteRenderer sr = obj.GetComponent<SpriteRenderer>();
|
||||||
|
if (sr != null)
|
||||||
|
sr.color = Random.ColorHSV(0f, 1f, 0.7f, 1f, 0.9f, 1f);
|
||||||
|
|
||||||
|
spawnedObjects.Add(obj);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Clear()
|
||||||
|
{
|
||||||
|
foreach (var o in spawnedObjects) if (o != null) Destroy(o);
|
||||||
|
foreach (var h in spawnedHoles) if (h != null) Destroy(h);
|
||||||
|
spawnedObjects.Clear();
|
||||||
|
spawnedHoles.Clear();
|
||||||
|
}
|
||||||
|
|
||||||
|
Vector2 RandomPos(float margin) =>
|
||||||
|
new Vector2(
|
||||||
|
Random.Range(minX + margin, maxX - margin),
|
||||||
|
Random.Range(minY + margin, maxY - margin)
|
||||||
|
);
|
||||||
|
}
|
||||||
2
Assets/Scripts/hod_veci_do_diry/ObjectSpawner.cs.meta
Normal file
2
Assets/Scripts/hod_veci_do_diry/ObjectSpawner.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 071f79f81861c2741a92d8b044457d94
|
||||||
8
Assets/Scripts/insert key.meta
Normal file
8
Assets/Scripts/insert key.meta
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 25326dbbba644974d81eaf9bddc8f76b
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
98
Assets/Scripts/insert key/insertkeys.cs
Normal file
98
Assets/Scripts/insert key/insertkeys.cs
Normal file
@@ -0,0 +1,98 @@
|
|||||||
|
using System;
|
||||||
|
using UnityEngine;
|
||||||
|
using UnityEngine.EventSystems;
|
||||||
|
using UnityEngine.SceneManagement;
|
||||||
|
using UnityEngine.UI;
|
||||||
|
|
||||||
|
public class DraggableKey : MonoBehaviour,
|
||||||
|
IBeginDragHandler, IDragHandler, IEndDragHandler, ITask
|
||||||
|
{
|
||||||
|
[Header("Key Settings")]
|
||||||
|
public string keyID;
|
||||||
|
public string correctSlotID;
|
||||||
|
public string previousSceneName;
|
||||||
|
|
||||||
|
|
||||||
|
[Header("Visual")]
|
||||||
|
public Color wrongAttemptColor = Color.red;
|
||||||
|
public float blinkDuration = 0.2f;
|
||||||
|
|
||||||
|
private RectTransform rectTransform;
|
||||||
|
private CanvasGroup canvasGroup;
|
||||||
|
private Vector2 startPosition;
|
||||||
|
|
||||||
|
private bool isOverCorrectSlot = false;
|
||||||
|
|
||||||
|
|
||||||
|
public string TaskID { get; set; }
|
||||||
|
public TaskType TaskType { get; set; }
|
||||||
|
public string TaskName { get; set; }
|
||||||
|
public (double, double) TaskLocation { get; set; }
|
||||||
|
public bool IsCompleted { get; private set; }
|
||||||
|
|
||||||
|
private Action<ITask> _onCompleted;
|
||||||
|
private Action<ITask> _onExit;
|
||||||
|
|
||||||
|
public void Initialize(Action<ITask> onCompleted)
|
||||||
|
{
|
||||||
|
IsCompleted = false;
|
||||||
|
_onCompleted = onCompleted;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Complete()
|
||||||
|
{
|
||||||
|
if (IsCompleted) return;
|
||||||
|
|
||||||
|
IsCompleted = true;
|
||||||
|
_onCompleted?.Invoke(this);
|
||||||
|
ExitTask(_onExit);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void ExitTask(Action<ITask> onExit)
|
||||||
|
{
|
||||||
|
onExit?.Invoke(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
// ===== UNITY =====
|
||||||
|
|
||||||
|
private void Awake()
|
||||||
|
{
|
||||||
|
rectTransform = GetComponent<RectTransform>();
|
||||||
|
canvasGroup = GetComponent<CanvasGroup>();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void OnBeginDrag(PointerEventData eventData)
|
||||||
|
{
|
||||||
|
startPosition = rectTransform.anchoredPosition;
|
||||||
|
canvasGroup.blocksRaycasts = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void OnDrag(PointerEventData eventData)
|
||||||
|
{
|
||||||
|
rectTransform.anchoredPosition += eventData.delta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void OnEndDrag(PointerEventData eventData)
|
||||||
|
{
|
||||||
|
canvasGroup.blocksRaycasts = true;
|
||||||
|
|
||||||
|
if (isOverCorrectSlot)
|
||||||
|
{
|
||||||
|
Complete();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public void SetSlotMatch(bool value)
|
||||||
|
{
|
||||||
|
isOverCorrectSlot = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void ResetPosition()
|
||||||
|
{
|
||||||
|
rectTransform.anchoredPosition = startPosition;
|
||||||
|
}
|
||||||
|
}
|
||||||
2
Assets/Scripts/insert key/insertkeys.cs.meta
Normal file
2
Assets/Scripts/insert key/insertkeys.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 21dc5fa96a2ceec428d7b0332e55cbe5
|
||||||
28
Assets/Scripts/insert key/keyslot.cs
Normal file
28
Assets/Scripts/insert key/keyslot.cs
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
using UnityEngine;
|
||||||
|
using UnityEngine.EventSystems;
|
||||||
|
using UnityEngine.SceneManagement;
|
||||||
|
|
||||||
|
public class KeySlot : MonoBehaviour, IDropHandler
|
||||||
|
{
|
||||||
|
public string correctKeyID;
|
||||||
|
|
||||||
|
public void OnDrop(PointerEventData eventData)
|
||||||
|
{
|
||||||
|
DraggableKey key = eventData.pointerDrag.GetComponent<DraggableKey>();
|
||||||
|
|
||||||
|
if (key != null)
|
||||||
|
{
|
||||||
|
if (key.keyID == correctKeyID)
|
||||||
|
{
|
||||||
|
key.transform.position = transform.position;
|
||||||
|
key.enabled = false;
|
||||||
|
|
||||||
|
KeyminigameManager.Instance.CheckWin();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
KeyminigameManager.Instance.Fail();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
2
Assets/Scripts/insert key/keyslot.cs.meta
Normal file
2
Assets/Scripts/insert key/keyslot.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 4f5eef97f16bb6b47ba88f96f9d051e9
|
||||||
30
Assets/Scripts/insert key/keysminiigamemanager.cs
Normal file
30
Assets/Scripts/insert key/keysminiigamemanager.cs
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
using UnityEngine;
|
||||||
|
using UnityEngine.SceneManagement;
|
||||||
|
|
||||||
|
public class KeyminigameManager : MonoBehaviour
|
||||||
|
{
|
||||||
|
public static KeyminigameManager Instance;
|
||||||
|
|
||||||
|
private int correctCount = 0;
|
||||||
|
public int totalKeys = 3;
|
||||||
|
|
||||||
|
private void Awake()
|
||||||
|
{
|
||||||
|
Instance = this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void CheckWin()
|
||||||
|
{
|
||||||
|
correctCount++;
|
||||||
|
|
||||||
|
if (correctCount >= totalKeys)
|
||||||
|
{
|
||||||
|
Debug.Log("WIN");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Fail()
|
||||||
|
{
|
||||||
|
SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex - 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
2
Assets/Scripts/insert key/keysminiigamemanager.cs.meta
Normal file
2
Assets/Scripts/insert key/keysminiigamemanager.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 0ef083a6749a8ce459b724dafa1eb08f
|
||||||
8
Assets/Scripts/kabely.meta
Normal file
8
Assets/Scripts/kabely.meta
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 488d6eb84e65aa94b8b3c77dcb2e21a3
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -1,8 +1,10 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.UI;
|
using UnityEngine.UI;
|
||||||
using UnityEngine.SceneManagement;
|
using UnityEngine.SceneManagement;
|
||||||
|
|
||||||
public class CableMiniGame : MonoBehaviour
|
public class CableMiniGame : MonoBehaviour, ITask
|
||||||
{
|
{
|
||||||
[System.Serializable]
|
[System.Serializable]
|
||||||
public class Cable
|
public class Cable
|
||||||
@@ -11,8 +13,21 @@ public class CableMiniGame : MonoBehaviour
|
|||||||
public Button sourceButton;
|
public Button sourceButton;
|
||||||
public Button targetButton;
|
public Button targetButton;
|
||||||
public Image cableImage;
|
public Image cableImage;
|
||||||
|
|
||||||
|
[HideInInspector] public bool connected;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public string TaskID { get; set; }
|
||||||
|
public TaskType TaskType { get; set; }
|
||||||
|
public string TaskName { get; set; }
|
||||||
|
public (double, double) TaskLocation { get; set; }
|
||||||
|
public bool IsCompleted { get; private set; }
|
||||||
|
|
||||||
|
private Action<ITask> _onCompleted;
|
||||||
|
private Action<ITask> _onExit;
|
||||||
|
|
||||||
|
[Header("MiniGame Settings")]
|
||||||
public Cable[] cables;
|
public Cable[] cables;
|
||||||
public string previousSceneName;
|
public string previousSceneName;
|
||||||
public Color wrongAttemptColor = Color.white;
|
public Color wrongAttemptColor = Color.white;
|
||||||
@@ -20,40 +35,80 @@ public class CableMiniGame : MonoBehaviour
|
|||||||
|
|
||||||
private string selectedColor = null;
|
private string selectedColor = null;
|
||||||
|
|
||||||
|
|
||||||
|
public void Initialize(Action<ITask> onCompleted)
|
||||||
|
{
|
||||||
|
IsCompleted = false;
|
||||||
|
_onCompleted = onCompleted;
|
||||||
|
|
||||||
|
foreach (var cable in cables)
|
||||||
|
cable.connected = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Complete()
|
||||||
|
{
|
||||||
|
if (IsCompleted) return;
|
||||||
|
|
||||||
|
IsCompleted = true;
|
||||||
|
_onCompleted?.Invoke(this);
|
||||||
|
ExitTask(_onExit);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void ExitTask(Action<ITask> onExit)
|
||||||
|
{
|
||||||
|
onExit?.Invoke(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void Start()
|
void Start()
|
||||||
{
|
{
|
||||||
foreach (var cable in cables)
|
foreach (var cable in cables)
|
||||||
{
|
{
|
||||||
cable.sourceButton.onClick.AddListener(() => OnSourceClicked(cable));
|
Cable localCable = cable;
|
||||||
cable.targetButton.onClick.AddListener(() => OnTargetClicked(cable));
|
|
||||||
|
cable.sourceButton.onClick.AddListener(() => OnSourceClicked(localCable));
|
||||||
|
cable.targetButton.onClick.AddListener(() => OnTargetClicked(localCable));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void OnSourceClicked(Cable cable)
|
void OnSourceClicked(Cable cable)
|
||||||
{
|
{
|
||||||
|
if (cable.connected) return;
|
||||||
|
|
||||||
selectedColor = cable.colorName;
|
selectedColor = cable.colorName;
|
||||||
Debug.Log("Vybrána barva: " + selectedColor);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void OnTargetClicked(Cable cable)
|
void OnTargetClicked(Cable cable)
|
||||||
{
|
{
|
||||||
if (selectedColor == null)
|
if (selectedColor == null || cable.connected)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (selectedColor == cable.colorName)
|
if (selectedColor == cable.colorName)
|
||||||
{
|
{
|
||||||
Debug.Log("Správnì!");
|
|
||||||
cable.cableImage.color = GetColorFromName(selectedColor);
|
cable.cableImage.color = GetColorFromName(selectedColor);
|
||||||
|
cable.connected = true;
|
||||||
|
|
||||||
|
CheckCompletion();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Debug.Log("Špatnì, restart!");
|
StartCoroutine(BlinkAndExit(cable.cableImage));
|
||||||
StartCoroutine(BlinkAndReset(cable.cableImage));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
selectedColor = null;
|
selectedColor = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CheckCompletion()
|
||||||
|
{
|
||||||
|
foreach (var cable in cables)
|
||||||
|
{
|
||||||
|
if (!cable.connected)
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
Complete();
|
||||||
|
}
|
||||||
|
|
||||||
Color GetColorFromName(string name)
|
Color GetColorFromName(string name)
|
||||||
{
|
{
|
||||||
switch (name.ToLower())
|
switch (name.ToLower())
|
||||||
@@ -67,12 +122,16 @@ public class CableMiniGame : MonoBehaviour
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
System.Collections.IEnumerator BlinkAndReset(Image img)
|
IEnumerator BlinkAndExit(Image img)
|
||||||
{
|
{
|
||||||
Color original = img.color;
|
Color original = img.color;
|
||||||
img.color = wrongAttemptColor;
|
img.color = wrongAttemptColor;
|
||||||
|
|
||||||
yield return new WaitForSeconds(blinkDuration);
|
yield return new WaitForSeconds(blinkDuration);
|
||||||
|
|
||||||
img.color = original;
|
img.color = original;
|
||||||
|
|
||||||
|
ExitTask(_onExit);
|
||||||
SceneManager.LoadScene(previousSceneName);
|
SceneManager.LoadScene(previousSceneName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
73
Assets/Scripts/logikadatatransfer.cs
Normal file
73
Assets/Scripts/logikadatatransfer.cs
Normal file
@@ -0,0 +1,73 @@
|
|||||||
|
using UnityEngine;
|
||||||
|
using UnityEngine.UI;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
public class GameManager : MonoBehaviour
|
||||||
|
{
|
||||||
|
public static GameManager Instance;
|
||||||
|
|
||||||
|
[Header("Kamery")]
|
||||||
|
public Camera kamera1;
|
||||||
|
public Camera kamera2;
|
||||||
|
public Camera kamera3;
|
||||||
|
|
||||||
|
[Header("Download animace")]
|
||||||
|
public List<GameObject> downloadObjects;
|
||||||
|
public float delay = 1f;
|
||||||
|
|
||||||
|
[Header("Kód")]
|
||||||
|
public Text feedbackText;
|
||||||
|
public InputField codeInput;
|
||||||
|
public Text successText;
|
||||||
|
|
||||||
|
private string generatedCode;
|
||||||
|
|
||||||
|
void Awake()
|
||||||
|
{
|
||||||
|
if (Instance == null) Instance = this;
|
||||||
|
else Destroy(gameObject);
|
||||||
|
}
|
||||||
|
|
||||||
|
void Start()
|
||||||
|
{
|
||||||
|
kamera1.enabled = true;
|
||||||
|
kamera2.enabled = false;
|
||||||
|
kamera3.enabled = false;
|
||||||
|
StartCoroutine(DownloadAnimace());
|
||||||
|
}
|
||||||
|
|
||||||
|
// ───── KAMERA 1 – animace + generování kódu ─────
|
||||||
|
IEnumerator DownloadAnimace()
|
||||||
|
{
|
||||||
|
foreach (GameObject obj in downloadObjects)
|
||||||
|
obj.SetActive(false);
|
||||||
|
|
||||||
|
foreach (GameObject obj in downloadObjects)
|
||||||
|
{
|
||||||
|
yield return new WaitForSeconds(delay);
|
||||||
|
obj.SetActive(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
generatedCode = "CODE" + Random.Range(1000, 9999);
|
||||||
|
feedbackText.text = "Kód: " + generatedCode;
|
||||||
|
|
||||||
|
kamera1.enabled = false;
|
||||||
|
kamera2.enabled = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
// ───── KAMERA 2 – ověření kódu ─────
|
||||||
|
public void VerifyCode()
|
||||||
|
{
|
||||||
|
if (codeInput.text == generatedCode)
|
||||||
|
{
|
||||||
|
kamera2.enabled = false;
|
||||||
|
kamera3.enabled = true;
|
||||||
|
successText.text = "Úspěch!";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
feedbackText.text = "Špatný kód, zkus znovu.";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
2
Assets/Scripts/logikadatatransfer.cs.meta
Normal file
2
Assets/Scripts/logikadatatransfer.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: e769308c478da9241a32192eeacf44bf
|
||||||
8
Assets/Scripts/satelity.meta
Normal file
8
Assets/Scripts/satelity.meta
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 1df04c245c361e941955db9527a21afe
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
77
Assets/Scripts/satelity/WindController.cs
Normal file
77
Assets/Scripts/satelity/WindController.cs
Normal file
@@ -0,0 +1,77 @@
|
|||||||
|
using System;
|
||||||
|
using UnityEngine;
|
||||||
|
using UnityEngine.EventSystems;
|
||||||
|
using UnityEngine.SceneManagement;
|
||||||
|
using UnityEngine.UI;
|
||||||
|
|
||||||
|
public class WindController : MonoBehaviour, ITask
|
||||||
|
{
|
||||||
|
[Header("Settings větru")]
|
||||||
|
public float maxWindTorque = 8f;
|
||||||
|
public float windChangeSpeed = 0.6f;
|
||||||
|
public float gustInterval = 4f;
|
||||||
|
public float gustMultiplier = 2.0f;
|
||||||
|
|
||||||
|
public float CurrentWindTorque { get; private set; }
|
||||||
|
|
||||||
|
private float targetTorque;
|
||||||
|
private float gustTimer;
|
||||||
|
|
||||||
|
|
||||||
|
private Action<ITask> _onCompleted;
|
||||||
|
private Action<ITask> _onExit;
|
||||||
|
|
||||||
|
public string TaskID { get; set; }
|
||||||
|
public TaskType TaskType { get; set; }
|
||||||
|
public string TaskName { get; set; }
|
||||||
|
public (double, double) TaskLocation { get; set; }
|
||||||
|
public bool IsCompleted { get; private set; }
|
||||||
|
|
||||||
|
void Start()
|
||||||
|
{
|
||||||
|
PickNewTargetTorque();
|
||||||
|
gustTimer = gustInterval;
|
||||||
|
}
|
||||||
|
|
||||||
|
void Update()
|
||||||
|
{
|
||||||
|
CurrentWindTorque = Mathf.Lerp(CurrentWindTorque, targetTorque, Time.deltaTime * windChangeSpeed);
|
||||||
|
|
||||||
|
gustTimer -= Time.deltaTime;
|
||||||
|
if (gustTimer <= 0f)
|
||||||
|
{
|
||||||
|
float gust = UnityEngine.Random.Range(-maxWindTorque, maxWindTorque) * gustMultiplier;
|
||||||
|
targetTorque = Mathf.Clamp(gust, -maxWindTorque * gustMultiplier, maxWindTorque * gustMultiplier);
|
||||||
|
|
||||||
|
gustTimer = gustInterval;
|
||||||
|
Invoke(nameof(PickNewTargetTorque), 0.8f);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void PickNewTargetTorque()
|
||||||
|
{
|
||||||
|
targetTorque = UnityEngine.Random.Range(-maxWindTorque, maxWindTorque);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public void Initialize(Action<ITask> onCompleted)
|
||||||
|
{
|
||||||
|
_onCompleted = onCompleted;
|
||||||
|
IsCompleted = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Complete()
|
||||||
|
{
|
||||||
|
if (IsCompleted) return;
|
||||||
|
|
||||||
|
IsCompleted = true;
|
||||||
|
_onCompleted?.Invoke(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void ExitTask(Action<ITask> onExit)
|
||||||
|
{
|
||||||
|
_onExit = onExit;
|
||||||
|
_onExit?.Invoke(this);
|
||||||
|
}
|
||||||
|
}
|
||||||
8
Assets/TextMesh Pro.meta
Normal file
8
Assets/TextMesh Pro.meta
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: f54d1bd14bd3ca042bd867b519fee8cc
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
8
Assets/TextMesh Pro/Fonts.meta
Normal file
8
Assets/TextMesh Pro/Fonts.meta
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 6ab70aee4d56447429c680537fbf93ed
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
46
Assets/TextMesh Pro/Fonts/LiberationSans - OFL.txt
Normal file
46
Assets/TextMesh Pro/Fonts/LiberationSans - OFL.txt
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
Digitized data copyright (c) 2010 Google Corporation
|
||||||
|
with Reserved Font Arimo, Tinos and Cousine.
|
||||||
|
Copyright (c) 2012 Red Hat, Inc.
|
||||||
|
with Reserved Font Name Liberation.
|
||||||
|
|
||||||
|
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||||
|
This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL
|
||||||
|
|
||||||
|
-----------------------------------------------------------
|
||||||
|
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||||
|
-----------------------------------------------------------
|
||||||
|
|
||||||
|
PREAMBLE
|
||||||
|
The goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects, to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework in which fonts may be shared and improved in partnership with others.
|
||||||
|
|
||||||
|
The OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives.
|
||||||
|
|
||||||
|
DEFINITIONS
|
||||||
|
"Font Software" refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation.
|
||||||
|
|
||||||
|
"Reserved Font Name" refers to any names specified as such after the copyright statement(s).
|
||||||
|
|
||||||
|
"Original Version" refers to the collection of Font Software components as distributed by the Copyright Holder(s).
|
||||||
|
|
||||||
|
"Modified Version" refers to any derivative made by adding to, deleting, or substituting -- in part or in whole -- any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment.
|
||||||
|
|
||||||
|
"Author" refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software.
|
||||||
|
|
||||||
|
PERMISSION & CONDITIONS
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions:
|
||||||
|
|
||||||
|
1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself.
|
||||||
|
|
||||||
|
2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user.
|
||||||
|
|
||||||
|
3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users.
|
||||||
|
|
||||||
|
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission.
|
||||||
|
|
||||||
|
5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software.
|
||||||
|
|
||||||
|
TERMINATION
|
||||||
|
This license becomes null and void if any of the above conditions are not met.
|
||||||
|
|
||||||
|
DISCLAIMER
|
||||||
|
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.
|
||||||
8
Assets/TextMesh Pro/Fonts/LiberationSans - OFL.txt.meta
Normal file
8
Assets/TextMesh Pro/Fonts/LiberationSans - OFL.txt.meta
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 6e59c59b81ab47f9b6ec5781fa725d2c
|
||||||
|
timeCreated: 1484171296
|
||||||
|
licenseType: Pro
|
||||||
|
TextScriptImporter:
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
BIN
Assets/TextMesh Pro/Fonts/LiberationSans.ttf
Normal file
BIN
Assets/TextMesh Pro/Fonts/LiberationSans.ttf
Normal file
Binary file not shown.
19
Assets/TextMesh Pro/Fonts/LiberationSans.ttf.meta
Normal file
19
Assets/TextMesh Pro/Fonts/LiberationSans.ttf.meta
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: e3265ab4bf004d28a9537516768c1c75
|
||||||
|
timeCreated: 1484171297
|
||||||
|
licenseType: Pro
|
||||||
|
TrueTypeFontImporter:
|
||||||
|
serializedVersion: 2
|
||||||
|
fontSize: 16
|
||||||
|
forceTextureCase: -2
|
||||||
|
characterSpacing: 1
|
||||||
|
characterPadding: 0
|
||||||
|
includeFontData: 1
|
||||||
|
use2xBehaviour: 0
|
||||||
|
fontNames: []
|
||||||
|
fallbackFontReferences: []
|
||||||
|
customCharacters:
|
||||||
|
fontRenderingMode: 0
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
8
Assets/TextMesh Pro/Resources.meta
Normal file
8
Assets/TextMesh Pro/Resources.meta
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 243e06394e614e5d99fab26083b707fa
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
9
Assets/TextMesh Pro/Resources/Fonts & Materials.meta
Normal file
9
Assets/TextMesh Pro/Resources/Fonts & Materials.meta
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 731f1baa9d144a9897cb1d341c2092b8
|
||||||
|
folderAsset: yes
|
||||||
|
timeCreated: 1442040525
|
||||||
|
licenseType: Pro
|
||||||
|
DefaultImporter:
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,106 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!21 &2100000
|
||||||
|
Material:
|
||||||
|
serializedVersion: 6
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: LiberationSans SDF - Drop Shadow
|
||||||
|
m_Shader: {fileID: 4800000, guid: fe393ace9b354375a9cb14cdbbc28be4, type: 3}
|
||||||
|
m_ShaderKeywords: OUTLINE_ON UNDERLAY_ON
|
||||||
|
m_LightmapFlags: 5
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: -1
|
||||||
|
stringTagMap: {}
|
||||||
|
disabledShaderPasses: []
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _BumpMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _Cube:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _FaceTex:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MainTex:
|
||||||
|
m_Texture: {fileID: 28684132378477856, guid: 8f586378b4e144a9851e7b34d9b748ee,
|
||||||
|
type: 2}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _OutlineTex:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Floats:
|
||||||
|
- _Ambient: 0.5
|
||||||
|
- _Bevel: 0.5
|
||||||
|
- _BevelClamp: 0
|
||||||
|
- _BevelOffset: 0
|
||||||
|
- _BevelRoundness: 0
|
||||||
|
- _BevelWidth: 0
|
||||||
|
- _BumpFace: 0
|
||||||
|
- _BumpOutline: 0
|
||||||
|
- _ColorMask: 15
|
||||||
|
- _Diffuse: 0.5
|
||||||
|
- _DiffusePower: 1
|
||||||
|
- _FaceDilate: 0.1
|
||||||
|
- _FaceUVSpeedX: 0
|
||||||
|
- _FaceUVSpeedY: 0
|
||||||
|
- _GlowInner: 0.05
|
||||||
|
- _GlowOffset: 0
|
||||||
|
- _GlowOuter: 0.05
|
||||||
|
- _GlowPower: 0.75
|
||||||
|
- _GradientScale: 10
|
||||||
|
- _LightAngle: 3.1416
|
||||||
|
- _MaskSoftnessX: 0
|
||||||
|
- _MaskSoftnessY: 0
|
||||||
|
- _OutlineSoftness: 0
|
||||||
|
- _OutlineUVSpeedX: 0
|
||||||
|
- _OutlineUVSpeedY: 0
|
||||||
|
- _OutlineWidth: 0.1
|
||||||
|
- _PerspectiveFilter: 0.875
|
||||||
|
- _Reflectivity: 10
|
||||||
|
- _ScaleRatioA: 0.9
|
||||||
|
- _ScaleRatioB: 0.73125
|
||||||
|
- _ScaleRatioC: 0.64125
|
||||||
|
- _ScaleX: 1
|
||||||
|
- _ScaleY: 1
|
||||||
|
- _ShaderFlags: 0
|
||||||
|
- _Sharpness: 0
|
||||||
|
- _SpecularPower: 2
|
||||||
|
- _Stencil: 0
|
||||||
|
- _StencilComp: 8
|
||||||
|
- _StencilOp: 0
|
||||||
|
- _StencilReadMask: 255
|
||||||
|
- _StencilWriteMask: 255
|
||||||
|
- _TextureHeight: 1024
|
||||||
|
- _TextureWidth: 1024
|
||||||
|
- _UnderlayDilate: 0
|
||||||
|
- _UnderlayOffsetX: 0.5
|
||||||
|
- _UnderlayOffsetY: -0.5
|
||||||
|
- _UnderlaySoftness: 0.05
|
||||||
|
- _VertexOffsetX: 0
|
||||||
|
- _VertexOffsetY: 0
|
||||||
|
- _WeightBold: 0.75
|
||||||
|
- _WeightNormal: 0
|
||||||
|
m_Colors:
|
||||||
|
- _ClipRect: {r: -32767, g: -32767, b: 32767, a: 32767}
|
||||||
|
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
- _EnvMatrixRotation: {r: 0, g: 0, b: 0, a: 0}
|
||||||
|
- _FaceColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
- _GlowColor: {r: 0, g: 1, b: 0, a: 0.5}
|
||||||
|
- _MaskCoord: {r: 0, g: 0, b: 32767, a: 32767}
|
||||||
|
- _OutlineColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
- _ReflectFaceColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
- _ReflectOutlineColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
- _SpecularColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
- _UnderlayColor: {r: 0, g: 0, b: 0, a: 0.5}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: e73a58f6e2794ae7b1b7e50b7fb811b0
|
||||||
|
timeCreated: 1484172806
|
||||||
|
licenseType: Pro
|
||||||
|
NativeFormatImporter:
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,364 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!21 &2180264
|
||||||
|
Material:
|
||||||
|
serializedVersion: 8
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: LiberationSans SDF Material
|
||||||
|
m_Shader: {fileID: 4800000, guid: fe393ace9b354375a9cb14cdbbc28be4, type: 3}
|
||||||
|
m_Parent: {fileID: 0}
|
||||||
|
m_ModifiedSerializedProperties: 0
|
||||||
|
m_ValidKeywords: []
|
||||||
|
m_InvalidKeywords: []
|
||||||
|
m_LightmapFlags: 1
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: -1
|
||||||
|
stringTagMap: {}
|
||||||
|
disabledShaderPasses: []
|
||||||
|
m_LockedProperties:
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _BumpMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _Cube:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailAlbedoMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailMask:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailNormalMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _EmissionMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _FaceTex:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MainTex:
|
||||||
|
m_Texture: {fileID: 28268798066460806}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MetallicGlossMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _OcclusionMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _OutlineTex:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _ParallaxMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Ints: []
|
||||||
|
m_Floats:
|
||||||
|
- _Ambient: 0.5
|
||||||
|
- _Bevel: 0.5
|
||||||
|
- _BevelClamp: 0
|
||||||
|
- _BevelOffset: 0
|
||||||
|
- _BevelRoundness: 0
|
||||||
|
- _BevelWidth: 0
|
||||||
|
- _BumpFace: 0
|
||||||
|
- _BumpOutline: 0
|
||||||
|
- _BumpScale: 1
|
||||||
|
- _ColorMask: 15
|
||||||
|
- _CullMode: 0
|
||||||
|
- _Cutoff: 0.5
|
||||||
|
- _DetailNormalMapScale: 1
|
||||||
|
- _Diffuse: 0.5
|
||||||
|
- _DstBlend: 0
|
||||||
|
- _FaceDilate: 0
|
||||||
|
- _FaceUVSpeedX: 0
|
||||||
|
- _FaceUVSpeedY: 0
|
||||||
|
- _GlossMapScale: 1
|
||||||
|
- _Glossiness: 0.5
|
||||||
|
- _GlossyReflections: 1
|
||||||
|
- _GlowInner: 0.05
|
||||||
|
- _GlowOffset: 0
|
||||||
|
- _GlowOuter: 0.05
|
||||||
|
- _GlowPower: 0.75
|
||||||
|
- _GradientScale: 10
|
||||||
|
- _LightAngle: 3.1416
|
||||||
|
- _MaskSoftnessX: 0
|
||||||
|
- _MaskSoftnessY: 0
|
||||||
|
- _Metallic: 0
|
||||||
|
- _Mode: 0
|
||||||
|
- _OcclusionStrength: 1
|
||||||
|
- _OutlineSoftness: 0
|
||||||
|
- _OutlineUVSpeedX: 0
|
||||||
|
- _OutlineUVSpeedY: 0
|
||||||
|
- _OutlineWidth: 0
|
||||||
|
- _Parallax: 0.02
|
||||||
|
- _PerspectiveFilter: 0.875
|
||||||
|
- _Reflectivity: 10
|
||||||
|
- _ScaleRatioA: 0.90909094
|
||||||
|
- _ScaleRatioB: 0.73125
|
||||||
|
- _ScaleRatioC: 0.7386364
|
||||||
|
- _ScaleX: 1
|
||||||
|
- _ScaleY: 1
|
||||||
|
- _ShaderFlags: 0
|
||||||
|
- _Sharpness: 0
|
||||||
|
- _SmoothnessTextureChannel: 0
|
||||||
|
- _SpecularHighlights: 1
|
||||||
|
- _SpecularPower: 2
|
||||||
|
- _SrcBlend: 1
|
||||||
|
- _Stencil: 0
|
||||||
|
- _StencilComp: 8
|
||||||
|
- _StencilOp: 0
|
||||||
|
- _StencilReadMask: 255
|
||||||
|
- _StencilWriteMask: 255
|
||||||
|
- _TextureHeight: 512
|
||||||
|
- _TextureWidth: 512
|
||||||
|
- _UVSec: 0
|
||||||
|
- _UnderlayDilate: 0
|
||||||
|
- _UnderlayOffsetX: 0
|
||||||
|
- _UnderlayOffsetY: 0
|
||||||
|
- _UnderlaySoftness: 0
|
||||||
|
- _VertexOffsetX: 0
|
||||||
|
- _VertexOffsetY: 0
|
||||||
|
- _WeightBold: 0.75
|
||||||
|
- _WeightNormal: 0
|
||||||
|
- _ZWrite: 1
|
||||||
|
m_Colors:
|
||||||
|
- _ClipRect: {r: -32767, g: -32767, b: 32767, a: 32767}
|
||||||
|
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
- _EnvMatrixRotation: {r: 0, g: 0, b: 0, a: 0}
|
||||||
|
- _FaceColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
- _GlowColor: {r: 0, g: 1, b: 0, a: 0.5}
|
||||||
|
- _MaskCoord: {r: 0, g: 0, b: 32767, a: 32767}
|
||||||
|
- _OutlineColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
- _ReflectFaceColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
- _ReflectOutlineColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
- _SpecularColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
- _UnderlayColor: {r: 0, g: 0, b: 0, a: 0.5}
|
||||||
|
m_BuildTextureStacks: []
|
||||||
|
m_AllowLocking: 1
|
||||||
|
--- !u!114 &11400000
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 0}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 71c1514a6bd24e1e882cebbe1904ce04, type: 3}
|
||||||
|
m_Name: LiberationSans SDF - Fallback
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_Version: 1.1.0
|
||||||
|
m_FaceInfo:
|
||||||
|
m_FaceIndex: 0
|
||||||
|
m_FamilyName: Liberation Sans
|
||||||
|
m_StyleName: Regular
|
||||||
|
m_PointSize: 86
|
||||||
|
m_Scale: 1
|
||||||
|
m_UnitsPerEM: 2048
|
||||||
|
m_LineHeight: 98.8916
|
||||||
|
m_AscentLine: 77.853516
|
||||||
|
m_CapLine: 59
|
||||||
|
m_MeanLine: 45
|
||||||
|
m_Baseline: 0
|
||||||
|
m_DescentLine: -18.22461
|
||||||
|
m_SuperscriptOffset: 77.853516
|
||||||
|
m_SuperscriptSize: 0.5
|
||||||
|
m_SubscriptOffset: -18.22461
|
||||||
|
m_SubscriptSize: 0.5
|
||||||
|
m_UnderlineOffset: -12.261719
|
||||||
|
m_UnderlineThickness: 6.298828
|
||||||
|
m_StrikethroughOffset: 18
|
||||||
|
m_StrikethroughThickness: 6.298828
|
||||||
|
m_TabWidth: 24
|
||||||
|
m_Material: {fileID: 2180264}
|
||||||
|
m_SourceFontFileGUID: e3265ab4bf004d28a9537516768c1c75
|
||||||
|
m_CreationSettings:
|
||||||
|
sourceFontFileName:
|
||||||
|
sourceFontFileGUID: e3265ab4bf004d28a9537516768c1c75
|
||||||
|
faceIndex: 0
|
||||||
|
pointSizeSamplingMode: 0
|
||||||
|
pointSize: 86
|
||||||
|
padding: 9
|
||||||
|
paddingMode: 0
|
||||||
|
packingMode: 4
|
||||||
|
atlasWidth: 512
|
||||||
|
atlasHeight: 512
|
||||||
|
characterSetSelectionMode: 1
|
||||||
|
characterSequence: 32 - 126, 160 - 255, 8192 - 8303, 8364, 8482, 9633
|
||||||
|
referencedFontAssetGUID: 8f586378b4e144a9851e7b34d9b748ee
|
||||||
|
referencedTextAssetGUID:
|
||||||
|
fontStyle: 0
|
||||||
|
fontStyleModifier: 0
|
||||||
|
renderMode: 4169
|
||||||
|
includeFontFeatures: 1
|
||||||
|
m_SourceFontFile: {fileID: 12800000, guid: e3265ab4bf004d28a9537516768c1c75, type: 3}
|
||||||
|
m_SourceFontFilePath:
|
||||||
|
m_AtlasPopulationMode: 1
|
||||||
|
InternalDynamicOS: 0
|
||||||
|
m_GlyphTable: []
|
||||||
|
m_CharacterTable: []
|
||||||
|
m_AtlasTextures:
|
||||||
|
- {fileID: 28268798066460806}
|
||||||
|
m_AtlasTextureIndex: 0
|
||||||
|
m_IsMultiAtlasTexturesEnabled: 1
|
||||||
|
m_GetFontFeatures: 1
|
||||||
|
m_ClearDynamicDataOnBuild: 1
|
||||||
|
m_AtlasWidth: 512
|
||||||
|
m_AtlasHeight: 512
|
||||||
|
m_AtlasPadding: 9
|
||||||
|
m_AtlasRenderMode: 4169
|
||||||
|
m_UsedGlyphRects: []
|
||||||
|
m_FreeGlyphRects:
|
||||||
|
- m_X: 0
|
||||||
|
m_Y: 0
|
||||||
|
m_Width: 511
|
||||||
|
m_Height: 511
|
||||||
|
m_FontFeatureTable:
|
||||||
|
m_MultipleSubstitutionRecords: []
|
||||||
|
m_LigatureSubstitutionRecords: []
|
||||||
|
m_GlyphPairAdjustmentRecords: []
|
||||||
|
m_MarkToBaseAdjustmentRecords: []
|
||||||
|
m_MarkToMarkAdjustmentRecords: []
|
||||||
|
m_ShouldReimportFontFeatures: 0
|
||||||
|
m_FallbackFontAssetTable: []
|
||||||
|
m_FontWeightTable:
|
||||||
|
- regularTypeface: {fileID: 0}
|
||||||
|
italicTypeface: {fileID: 0}
|
||||||
|
- regularTypeface: {fileID: 0}
|
||||||
|
italicTypeface: {fileID: 0}
|
||||||
|
- regularTypeface: {fileID: 0}
|
||||||
|
italicTypeface: {fileID: 0}
|
||||||
|
- regularTypeface: {fileID: 0}
|
||||||
|
italicTypeface: {fileID: 0}
|
||||||
|
- regularTypeface: {fileID: 0}
|
||||||
|
italicTypeface: {fileID: 0}
|
||||||
|
- regularTypeface: {fileID: 0}
|
||||||
|
italicTypeface: {fileID: 0}
|
||||||
|
- regularTypeface: {fileID: 0}
|
||||||
|
italicTypeface: {fileID: 0}
|
||||||
|
- regularTypeface: {fileID: 0}
|
||||||
|
italicTypeface: {fileID: 0}
|
||||||
|
- regularTypeface: {fileID: 0}
|
||||||
|
italicTypeface: {fileID: 0}
|
||||||
|
- regularTypeface: {fileID: 0}
|
||||||
|
italicTypeface: {fileID: 0}
|
||||||
|
fontWeights:
|
||||||
|
- regularTypeface: {fileID: 0}
|
||||||
|
italicTypeface: {fileID: 0}
|
||||||
|
- regularTypeface: {fileID: 0}
|
||||||
|
italicTypeface: {fileID: 0}
|
||||||
|
- regularTypeface: {fileID: 0}
|
||||||
|
italicTypeface: {fileID: 0}
|
||||||
|
- regularTypeface: {fileID: 0}
|
||||||
|
italicTypeface: {fileID: 0}
|
||||||
|
- regularTypeface: {fileID: 0}
|
||||||
|
italicTypeface: {fileID: 0}
|
||||||
|
- regularTypeface: {fileID: 0}
|
||||||
|
italicTypeface: {fileID: 0}
|
||||||
|
- regularTypeface: {fileID: 0}
|
||||||
|
italicTypeface: {fileID: 0}
|
||||||
|
- regularTypeface: {fileID: 0}
|
||||||
|
italicTypeface: {fileID: 0}
|
||||||
|
- regularTypeface: {fileID: 0}
|
||||||
|
italicTypeface: {fileID: 0}
|
||||||
|
- regularTypeface: {fileID: 0}
|
||||||
|
italicTypeface: {fileID: 0}
|
||||||
|
normalStyle: 0
|
||||||
|
normalSpacingOffset: 0
|
||||||
|
boldStyle: 0.75
|
||||||
|
boldSpacing: 7
|
||||||
|
italicStyle: 35
|
||||||
|
tabSize: 10
|
||||||
|
m_fontInfo:
|
||||||
|
Name: Liberation Sans
|
||||||
|
PointSize: 86
|
||||||
|
Scale: 1
|
||||||
|
CharacterCount: 250
|
||||||
|
LineHeight: 98.90625
|
||||||
|
Baseline: 0
|
||||||
|
Ascender: 77.84375
|
||||||
|
CapHeight: 59.1875
|
||||||
|
Descender: -18.21875
|
||||||
|
CenterLine: 0
|
||||||
|
SuperscriptOffset: 77.84375
|
||||||
|
SubscriptOffset: -12.261719
|
||||||
|
SubSize: 0.5
|
||||||
|
Underline: -12.261719
|
||||||
|
UnderlineThickness: 6.298828
|
||||||
|
strikethrough: 23.675
|
||||||
|
strikethroughThickness: 0
|
||||||
|
TabWidth: 239.0625
|
||||||
|
Padding: 9
|
||||||
|
AtlasWidth: 1024
|
||||||
|
AtlasHeight: 1024
|
||||||
|
m_glyphInfoList: []
|
||||||
|
m_KerningTable:
|
||||||
|
kerningPairs: []
|
||||||
|
fallbackFontAssets: []
|
||||||
|
atlas: {fileID: 0}
|
||||||
|
--- !u!28 &28268798066460806
|
||||||
|
Texture2D:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: LiberationSans SDF Atlas
|
||||||
|
m_ImageContentsHash:
|
||||||
|
serializedVersion: 2
|
||||||
|
Hash: 00000000000000000000000000000000
|
||||||
|
m_IsAlphaChannelOptional: 0
|
||||||
|
serializedVersion: 4
|
||||||
|
m_Width: 1
|
||||||
|
m_Height: 1
|
||||||
|
m_CompleteImageSize: 1
|
||||||
|
m_MipsStripped: 0
|
||||||
|
m_TextureFormat: 1
|
||||||
|
m_MipCount: 1
|
||||||
|
m_IsReadable: 1
|
||||||
|
m_IsPreProcessed: 0
|
||||||
|
m_IgnoreMipmapLimit: 0
|
||||||
|
m_MipmapLimitGroupName:
|
||||||
|
m_StreamingMipmaps: 0
|
||||||
|
m_StreamingMipmapsPriority: 0
|
||||||
|
m_VTOnly: 0
|
||||||
|
m_AlphaIsTransparency: 0
|
||||||
|
m_ImageCount: 1
|
||||||
|
m_TextureDimension: 2
|
||||||
|
m_TextureSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_FilterMode: 1
|
||||||
|
m_Aniso: 1
|
||||||
|
m_MipBias: 0
|
||||||
|
m_WrapU: 0
|
||||||
|
m_WrapV: 0
|
||||||
|
m_WrapW: 0
|
||||||
|
m_LightmapFormat: 0
|
||||||
|
m_ColorSpace: 0
|
||||||
|
m_PlatformBlob:
|
||||||
|
image data: 1
|
||||||
|
_typelessdata: 00
|
||||||
|
m_StreamData:
|
||||||
|
serializedVersion: 2
|
||||||
|
offset: 0
|
||||||
|
size: 0
|
||||||
|
path:
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 2e498d1c8094910479dc3e1b768306a4
|
||||||
|
timeCreated: 1484171803
|
||||||
|
licenseType: Pro
|
||||||
|
NativeFormatImporter:
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,104 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!21 &2100000
|
||||||
|
Material:
|
||||||
|
serializedVersion: 6
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: LiberationSans SDF - Outline
|
||||||
|
m_Shader: {fileID: 4800000, guid: fe393ace9b354375a9cb14cdbbc28be4, type: 3}
|
||||||
|
m_ShaderKeywords: OUTLINE_ON
|
||||||
|
m_LightmapFlags: 5
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: -1
|
||||||
|
stringTagMap: {}
|
||||||
|
disabledShaderPasses: []
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _BumpMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _Cube:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _FaceTex:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MainTex:
|
||||||
|
m_Texture: {fileID: 28684132378477856, guid: 8f586378b4e144a9851e7b34d9b748ee,
|
||||||
|
type: 2}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _OutlineTex:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Floats:
|
||||||
|
- _Ambient: 0.5
|
||||||
|
- _Bevel: 0.5
|
||||||
|
- _BevelClamp: 0
|
||||||
|
- _BevelOffset: 0
|
||||||
|
- _BevelRoundness: 0
|
||||||
|
- _BevelWidth: 0
|
||||||
|
- _BumpFace: 0
|
||||||
|
- _BumpOutline: 0
|
||||||
|
- _ColorMask: 15
|
||||||
|
- _Diffuse: 0.5
|
||||||
|
- _FaceDilate: 0.1
|
||||||
|
- _FaceUVSpeedX: 0
|
||||||
|
- _FaceUVSpeedY: 0
|
||||||
|
- _GlowInner: 0.05
|
||||||
|
- _GlowOffset: 0
|
||||||
|
- _GlowOuter: 0.05
|
||||||
|
- _GlowPower: 0.75
|
||||||
|
- _GradientScale: 10
|
||||||
|
- _LightAngle: 3.1416
|
||||||
|
- _MaskSoftnessX: 0
|
||||||
|
- _MaskSoftnessY: 0
|
||||||
|
- _OutlineSoftness: 0
|
||||||
|
- _OutlineUVSpeedX: 0
|
||||||
|
- _OutlineUVSpeedY: 0
|
||||||
|
- _OutlineWidth: 0.1
|
||||||
|
- _PerspectiveFilter: 0.875
|
||||||
|
- _Reflectivity: 10
|
||||||
|
- _ScaleRatioA: 0.9
|
||||||
|
- _ScaleRatioB: 0.73125
|
||||||
|
- _ScaleRatioC: 0.64125
|
||||||
|
- _ScaleX: 1
|
||||||
|
- _ScaleY: 1
|
||||||
|
- _ShaderFlags: 0
|
||||||
|
- _Sharpness: 0
|
||||||
|
- _SpecularPower: 2
|
||||||
|
- _Stencil: 0
|
||||||
|
- _StencilComp: 8
|
||||||
|
- _StencilOp: 0
|
||||||
|
- _StencilReadMask: 255
|
||||||
|
- _StencilWriteMask: 255
|
||||||
|
- _TextureHeight: 1024
|
||||||
|
- _TextureWidth: 1024
|
||||||
|
- _UnderlayDilate: 0
|
||||||
|
- _UnderlayOffsetX: 0
|
||||||
|
- _UnderlayOffsetY: 0
|
||||||
|
- _UnderlaySoftness: 0
|
||||||
|
- _VertexOffsetX: 0
|
||||||
|
- _VertexOffsetY: 0
|
||||||
|
- _WeightBold: 0.75
|
||||||
|
- _WeightNormal: 0
|
||||||
|
m_Colors:
|
||||||
|
- _ClipRect: {r: -32767, g: -32767, b: 32767, a: 32767}
|
||||||
|
- _EnvMatrixRotation: {r: 0, g: 0, b: 0, a: 0}
|
||||||
|
- _FaceColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
- _GlowColor: {r: 0, g: 1, b: 0, a: 0.5}
|
||||||
|
- _MaskCoord: {r: 0, g: 0, b: 32767, a: 32767}
|
||||||
|
- _OutlineColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
- _ReflectFaceColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
- _ReflectOutlineColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
- _SpecularColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
- _UnderlayColor: {r: 0, g: 0, b: 0, a: 0.5}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 79459efec17a4d00a321bdcc27bbc385
|
||||||
|
timeCreated: 1484172856
|
||||||
|
licenseType: Pro
|
||||||
|
NativeFormatImporter:
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 8f586378b4e144a9851e7b34d9b748ee
|
||||||
|
timeCreated: 1484171803
|
||||||
|
licenseType: Pro
|
||||||
|
NativeFormatImporter:
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
)]}〕〉》」』】〙〗〟’”⦆»ヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻‐゠–〜?!‼⁇⁈⁉・、%,.:;。!?]):;=}¢°"†‡℃〆%,.
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: fade42e8bc714b018fac513c043d323b
|
||||||
|
timeCreated: 1425440388
|
||||||
|
licenseType: Store
|
||||||
|
TextScriptImporter:
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
([{〔〈《「『【〘〖〝‘“⦅«$—…‥〳〴〵\[({£¥"々〇$¥₩ #
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: d82c1b31c7e74239bff1220585707d2b
|
||||||
|
timeCreated: 1425440388
|
||||||
|
licenseType: Store
|
||||||
|
TextScriptImporter:
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
9
Assets/TextMesh Pro/Resources/Sprite Assets.meta
Normal file
9
Assets/TextMesh Pro/Resources/Sprite Assets.meta
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 512a49d95c0c4332bdd98131869c23c9
|
||||||
|
folderAsset: yes
|
||||||
|
timeCreated: 1441876896
|
||||||
|
licenseType: Pro
|
||||||
|
DefaultImporter:
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
659
Assets/TextMesh Pro/Resources/Sprite Assets/EmojiOne.asset
Normal file
659
Assets/TextMesh Pro/Resources/Sprite Assets/EmojiOne.asset
Normal file
@@ -0,0 +1,659 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!21 &2103686
|
||||||
|
Material:
|
||||||
|
serializedVersion: 6
|
||||||
|
m_ObjectHideFlags: 1
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: TextMeshPro/Sprite
|
||||||
|
m_Shader: {fileID: 4800000, guid: cf81c85f95fe47e1a27f6ae460cf182c, type: 3}
|
||||||
|
m_ShaderKeywords: UNITY_UI_CLIP_RECT
|
||||||
|
m_LightmapFlags: 5
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: -1
|
||||||
|
stringTagMap: {}
|
||||||
|
disabledShaderPasses: []
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _MainTex:
|
||||||
|
m_Texture: {fileID: 2800000, guid: dffef66376be4fa480fb02b19edbe903, type: 3}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Floats:
|
||||||
|
- _ColorMask: 15
|
||||||
|
- _CullMode: 0
|
||||||
|
- _Stencil: 0
|
||||||
|
- _StencilComp: 8
|
||||||
|
- _StencilOp: 0
|
||||||
|
- _StencilReadMask: 255
|
||||||
|
- _StencilWriteMask: 255
|
||||||
|
- _UseUIAlphaClip: 0
|
||||||
|
m_Colors:
|
||||||
|
- _ClipRect: {r: -32767, g: -32767, b: 32767, a: 32767}
|
||||||
|
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
--- !u!114 &11400000
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 0}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 84a92b25f83d49b9bc132d206b370281, type: 3}
|
||||||
|
m_Name: EmojiOne
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
hashCode: -1836805472
|
||||||
|
material: {fileID: 2103686}
|
||||||
|
materialHashCode: 0
|
||||||
|
m_Version: 1.1.0
|
||||||
|
m_FaceInfo:
|
||||||
|
m_FamilyName:
|
||||||
|
m_StyleName:
|
||||||
|
m_PointSize: 0
|
||||||
|
m_Scale: 0
|
||||||
|
m_LineHeight: 0
|
||||||
|
m_AscentLine: 0
|
||||||
|
m_CapLine: 0
|
||||||
|
m_MeanLine: 0
|
||||||
|
m_Baseline: 0
|
||||||
|
m_DescentLine: 0
|
||||||
|
m_SuperscriptOffset: 0
|
||||||
|
m_SuperscriptSize: 0
|
||||||
|
m_SubscriptOffset: 0
|
||||||
|
m_SubscriptSize: 0
|
||||||
|
m_UnderlineOffset: 0
|
||||||
|
m_UnderlineThickness: 0
|
||||||
|
m_StrikethroughOffset: 0
|
||||||
|
m_StrikethroughThickness: 0
|
||||||
|
m_TabWidth: 0
|
||||||
|
spriteSheet: {fileID: 2800000, guid: dffef66376be4fa480fb02b19edbe903, type: 3}
|
||||||
|
m_SpriteCharacterTable:
|
||||||
|
- m_ElementType: 2
|
||||||
|
m_Unicode: 128522
|
||||||
|
m_GlyphIndex: 0
|
||||||
|
m_Scale: 1
|
||||||
|
m_Name: Smiling face with smiling eyes
|
||||||
|
m_HashCode: -1318250903
|
||||||
|
- m_ElementType: 2
|
||||||
|
m_Unicode: 128523
|
||||||
|
m_GlyphIndex: 1
|
||||||
|
m_Scale: 1
|
||||||
|
m_Name: 1f60b
|
||||||
|
m_HashCode: 57188339
|
||||||
|
- m_ElementType: 2
|
||||||
|
m_Unicode: 128525
|
||||||
|
m_GlyphIndex: 2
|
||||||
|
m_Scale: 1
|
||||||
|
m_Name: 1f60d
|
||||||
|
m_HashCode: 57188341
|
||||||
|
- m_ElementType: 2
|
||||||
|
m_Unicode: 128526
|
||||||
|
m_GlyphIndex: 3
|
||||||
|
m_Scale: 1
|
||||||
|
m_Name: 1f60e
|
||||||
|
m_HashCode: 57188340
|
||||||
|
- m_ElementType: 2
|
||||||
|
m_Unicode: 128512
|
||||||
|
m_GlyphIndex: 4
|
||||||
|
m_Scale: 1
|
||||||
|
m_Name: Grinning face
|
||||||
|
m_HashCode: -95541379
|
||||||
|
- m_ElementType: 2
|
||||||
|
m_Unicode: 128513
|
||||||
|
m_GlyphIndex: 5
|
||||||
|
m_Scale: 1
|
||||||
|
m_Name: 1f601
|
||||||
|
m_HashCode: 57188256
|
||||||
|
- m_ElementType: 2
|
||||||
|
m_Unicode: 128514
|
||||||
|
m_GlyphIndex: 6
|
||||||
|
m_Scale: 1
|
||||||
|
m_Name: Face with tears of joy
|
||||||
|
m_HashCode: 239522663
|
||||||
|
- m_ElementType: 2
|
||||||
|
m_Unicode: 128515
|
||||||
|
m_GlyphIndex: 7
|
||||||
|
m_Scale: 1
|
||||||
|
m_Name: 1f603
|
||||||
|
m_HashCode: 57188258
|
||||||
|
- m_ElementType: 2
|
||||||
|
m_Unicode: 128516
|
||||||
|
m_GlyphIndex: 8
|
||||||
|
m_Scale: 1
|
||||||
|
m_Name: 1f604
|
||||||
|
m_HashCode: 57188261
|
||||||
|
- m_ElementType: 2
|
||||||
|
m_Unicode: 128517
|
||||||
|
m_GlyphIndex: 9
|
||||||
|
m_Scale: 1
|
||||||
|
m_Name: 1f605
|
||||||
|
m_HashCode: 57188260
|
||||||
|
- m_ElementType: 2
|
||||||
|
m_Unicode: 128518
|
||||||
|
m_GlyphIndex: 10
|
||||||
|
m_Scale: 1
|
||||||
|
m_Name: 1f606
|
||||||
|
m_HashCode: 57188263
|
||||||
|
- m_ElementType: 2
|
||||||
|
m_Unicode: 128521
|
||||||
|
m_GlyphIndex: 11
|
||||||
|
m_Scale: 1
|
||||||
|
m_Name: 1f609
|
||||||
|
m_HashCode: 57188264
|
||||||
|
- m_ElementType: 2
|
||||||
|
m_Unicode: 0
|
||||||
|
m_GlyphIndex: 12
|
||||||
|
m_Scale: 1
|
||||||
|
m_Name: .notdef
|
||||||
|
m_HashCode: -600915428
|
||||||
|
- m_ElementType: 2
|
||||||
|
m_Unicode: 129315
|
||||||
|
m_GlyphIndex: 13
|
||||||
|
m_Scale: 1
|
||||||
|
m_Name: 1f923
|
||||||
|
m_HashCode: 57200239
|
||||||
|
- m_ElementType: 2
|
||||||
|
m_Unicode: 9786
|
||||||
|
m_GlyphIndex: 14
|
||||||
|
m_Scale: 1
|
||||||
|
m_Name: 263a
|
||||||
|
m_HashCode: 1748406
|
||||||
|
- m_ElementType: 2
|
||||||
|
m_Unicode: 9785
|
||||||
|
m_GlyphIndex: 15
|
||||||
|
m_Scale: 1
|
||||||
|
m_Name: 2639
|
||||||
|
m_HashCode: 1748462
|
||||||
|
m_SpriteGlyphTable:
|
||||||
|
- m_Index: 0
|
||||||
|
m_Metrics:
|
||||||
|
m_Width: 128
|
||||||
|
m_Height: 128
|
||||||
|
m_HorizontalBearingX: 0
|
||||||
|
m_HorizontalBearingY: 115.6
|
||||||
|
m_HorizontalAdvance: 128
|
||||||
|
m_GlyphRect:
|
||||||
|
m_X: 0
|
||||||
|
m_Y: 384
|
||||||
|
m_Width: 128
|
||||||
|
m_Height: 128
|
||||||
|
m_Scale: 1
|
||||||
|
m_AtlasIndex: 0
|
||||||
|
sprite: {fileID: 0}
|
||||||
|
- m_Index: 1
|
||||||
|
m_Metrics:
|
||||||
|
m_Width: 128
|
||||||
|
m_Height: 128
|
||||||
|
m_HorizontalBearingX: 0
|
||||||
|
m_HorizontalBearingY: 115.6
|
||||||
|
m_HorizontalAdvance: 128
|
||||||
|
m_GlyphRect:
|
||||||
|
m_X: 128
|
||||||
|
m_Y: 384
|
||||||
|
m_Width: 128
|
||||||
|
m_Height: 128
|
||||||
|
m_Scale: 1
|
||||||
|
m_AtlasIndex: 0
|
||||||
|
sprite: {fileID: 0}
|
||||||
|
- m_Index: 2
|
||||||
|
m_Metrics:
|
||||||
|
m_Width: 128
|
||||||
|
m_Height: 128
|
||||||
|
m_HorizontalBearingX: 0
|
||||||
|
m_HorizontalBearingY: 115.6
|
||||||
|
m_HorizontalAdvance: 128
|
||||||
|
m_GlyphRect:
|
||||||
|
m_X: 256
|
||||||
|
m_Y: 384
|
||||||
|
m_Width: 128
|
||||||
|
m_Height: 128
|
||||||
|
m_Scale: 1
|
||||||
|
m_AtlasIndex: 0
|
||||||
|
sprite: {fileID: 0}
|
||||||
|
- m_Index: 3
|
||||||
|
m_Metrics:
|
||||||
|
m_Width: 128
|
||||||
|
m_Height: 128
|
||||||
|
m_HorizontalBearingX: 0
|
||||||
|
m_HorizontalBearingY: 115.6
|
||||||
|
m_HorizontalAdvance: 128
|
||||||
|
m_GlyphRect:
|
||||||
|
m_X: 384
|
||||||
|
m_Y: 384
|
||||||
|
m_Width: 128
|
||||||
|
m_Height: 128
|
||||||
|
m_Scale: 1
|
||||||
|
m_AtlasIndex: 0
|
||||||
|
sprite: {fileID: 0}
|
||||||
|
- m_Index: 4
|
||||||
|
m_Metrics:
|
||||||
|
m_Width: 128
|
||||||
|
m_Height: 128
|
||||||
|
m_HorizontalBearingX: 0
|
||||||
|
m_HorizontalBearingY: 115.6
|
||||||
|
m_HorizontalAdvance: 128
|
||||||
|
m_GlyphRect:
|
||||||
|
m_X: 0
|
||||||
|
m_Y: 256
|
||||||
|
m_Width: 128
|
||||||
|
m_Height: 128
|
||||||
|
m_Scale: 1
|
||||||
|
m_AtlasIndex: 0
|
||||||
|
sprite: {fileID: 0}
|
||||||
|
- m_Index: 5
|
||||||
|
m_Metrics:
|
||||||
|
m_Width: 128
|
||||||
|
m_Height: 128
|
||||||
|
m_HorizontalBearingX: 0
|
||||||
|
m_HorizontalBearingY: 115.6
|
||||||
|
m_HorizontalAdvance: 128
|
||||||
|
m_GlyphRect:
|
||||||
|
m_X: 128
|
||||||
|
m_Y: 256
|
||||||
|
m_Width: 128
|
||||||
|
m_Height: 128
|
||||||
|
m_Scale: 1
|
||||||
|
m_AtlasIndex: 0
|
||||||
|
sprite: {fileID: 0}
|
||||||
|
- m_Index: 6
|
||||||
|
m_Metrics:
|
||||||
|
m_Width: 128
|
||||||
|
m_Height: 128
|
||||||
|
m_HorizontalBearingX: 0
|
||||||
|
m_HorizontalBearingY: 115.6
|
||||||
|
m_HorizontalAdvance: 128
|
||||||
|
m_GlyphRect:
|
||||||
|
m_X: 256
|
||||||
|
m_Y: 256
|
||||||
|
m_Width: 128
|
||||||
|
m_Height: 128
|
||||||
|
m_Scale: 1
|
||||||
|
m_AtlasIndex: 0
|
||||||
|
sprite: {fileID: 0}
|
||||||
|
- m_Index: 7
|
||||||
|
m_Metrics:
|
||||||
|
m_Width: 128
|
||||||
|
m_Height: 128
|
||||||
|
m_HorizontalBearingX: 0
|
||||||
|
m_HorizontalBearingY: 115.6
|
||||||
|
m_HorizontalAdvance: 128
|
||||||
|
m_GlyphRect:
|
||||||
|
m_X: 384
|
||||||
|
m_Y: 256
|
||||||
|
m_Width: 128
|
||||||
|
m_Height: 128
|
||||||
|
m_Scale: 1
|
||||||
|
m_AtlasIndex: 0
|
||||||
|
sprite: {fileID: 0}
|
||||||
|
- m_Index: 8
|
||||||
|
m_Metrics:
|
||||||
|
m_Width: 128
|
||||||
|
m_Height: 128
|
||||||
|
m_HorizontalBearingX: 0
|
||||||
|
m_HorizontalBearingY: 115.6
|
||||||
|
m_HorizontalAdvance: 128
|
||||||
|
m_GlyphRect:
|
||||||
|
m_X: 0
|
||||||
|
m_Y: 128
|
||||||
|
m_Width: 128
|
||||||
|
m_Height: 128
|
||||||
|
m_Scale: 1
|
||||||
|
m_AtlasIndex: 0
|
||||||
|
sprite: {fileID: 0}
|
||||||
|
- m_Index: 9
|
||||||
|
m_Metrics:
|
||||||
|
m_Width: 128
|
||||||
|
m_Height: 128
|
||||||
|
m_HorizontalBearingX: 0
|
||||||
|
m_HorizontalBearingY: 115.6
|
||||||
|
m_HorizontalAdvance: 128
|
||||||
|
m_GlyphRect:
|
||||||
|
m_X: 128
|
||||||
|
m_Y: 128
|
||||||
|
m_Width: 128
|
||||||
|
m_Height: 128
|
||||||
|
m_Scale: 1
|
||||||
|
m_AtlasIndex: 0
|
||||||
|
sprite: {fileID: 0}
|
||||||
|
- m_Index: 10
|
||||||
|
m_Metrics:
|
||||||
|
m_Width: 128
|
||||||
|
m_Height: 128
|
||||||
|
m_HorizontalBearingX: 0
|
||||||
|
m_HorizontalBearingY: 115.6
|
||||||
|
m_HorizontalAdvance: 128
|
||||||
|
m_GlyphRect:
|
||||||
|
m_X: 256
|
||||||
|
m_Y: 128
|
||||||
|
m_Width: 128
|
||||||
|
m_Height: 128
|
||||||
|
m_Scale: 1
|
||||||
|
m_AtlasIndex: 0
|
||||||
|
sprite: {fileID: 0}
|
||||||
|
- m_Index: 11
|
||||||
|
m_Metrics:
|
||||||
|
m_Width: 128
|
||||||
|
m_Height: 128
|
||||||
|
m_HorizontalBearingX: 0
|
||||||
|
m_HorizontalBearingY: 115.6
|
||||||
|
m_HorizontalAdvance: 128
|
||||||
|
m_GlyphRect:
|
||||||
|
m_X: 384
|
||||||
|
m_Y: 128
|
||||||
|
m_Width: 128
|
||||||
|
m_Height: 128
|
||||||
|
m_Scale: 1
|
||||||
|
m_AtlasIndex: 0
|
||||||
|
sprite: {fileID: 0}
|
||||||
|
- m_Index: 12
|
||||||
|
m_Metrics:
|
||||||
|
m_Width: 128
|
||||||
|
m_Height: 128
|
||||||
|
m_HorizontalBearingX: 0
|
||||||
|
m_HorizontalBearingY: 115.6
|
||||||
|
m_HorizontalAdvance: 128
|
||||||
|
m_GlyphRect:
|
||||||
|
m_X: 0
|
||||||
|
m_Y: 0
|
||||||
|
m_Width: 128
|
||||||
|
m_Height: 128
|
||||||
|
m_Scale: 1
|
||||||
|
m_AtlasIndex: 0
|
||||||
|
sprite: {fileID: 0}
|
||||||
|
- m_Index: 13
|
||||||
|
m_Metrics:
|
||||||
|
m_Width: 128
|
||||||
|
m_Height: 128
|
||||||
|
m_HorizontalBearingX: 0
|
||||||
|
m_HorizontalBearingY: 115.6
|
||||||
|
m_HorizontalAdvance: 128
|
||||||
|
m_GlyphRect:
|
||||||
|
m_X: 128
|
||||||
|
m_Y: 0
|
||||||
|
m_Width: 128
|
||||||
|
m_Height: 128
|
||||||
|
m_Scale: 1
|
||||||
|
m_AtlasIndex: 0
|
||||||
|
sprite: {fileID: 0}
|
||||||
|
- m_Index: 14
|
||||||
|
m_Metrics:
|
||||||
|
m_Width: 128
|
||||||
|
m_Height: 128
|
||||||
|
m_HorizontalBearingX: 0
|
||||||
|
m_HorizontalBearingY: 115.6
|
||||||
|
m_HorizontalAdvance: 128
|
||||||
|
m_GlyphRect:
|
||||||
|
m_X: 256
|
||||||
|
m_Y: 0
|
||||||
|
m_Width: 128
|
||||||
|
m_Height: 128
|
||||||
|
m_Scale: 1
|
||||||
|
m_AtlasIndex: 0
|
||||||
|
sprite: {fileID: 0}
|
||||||
|
- m_Index: 15
|
||||||
|
m_Metrics:
|
||||||
|
m_Width: 128
|
||||||
|
m_Height: 128
|
||||||
|
m_HorizontalBearingX: 0
|
||||||
|
m_HorizontalBearingY: 115.6
|
||||||
|
m_HorizontalAdvance: 128
|
||||||
|
m_GlyphRect:
|
||||||
|
m_X: 384
|
||||||
|
m_Y: 0
|
||||||
|
m_Width: 128
|
||||||
|
m_Height: 128
|
||||||
|
m_Scale: 1
|
||||||
|
m_AtlasIndex: 0
|
||||||
|
sprite: {fileID: 0}
|
||||||
|
spriteInfoList:
|
||||||
|
- id: 0
|
||||||
|
x: 0
|
||||||
|
y: 384
|
||||||
|
width: 128
|
||||||
|
height: 128
|
||||||
|
xOffset: 0
|
||||||
|
yOffset: 115.6
|
||||||
|
xAdvance: 128
|
||||||
|
scale: 1
|
||||||
|
name: Smiling face with smiling eyes
|
||||||
|
hashCode: -1318250903
|
||||||
|
unicode: 128522
|
||||||
|
pivot: {x: 0.5, y: 0.5}
|
||||||
|
sprite: {fileID: 0}
|
||||||
|
- id: 1
|
||||||
|
x: 128
|
||||||
|
y: 384
|
||||||
|
width: 128
|
||||||
|
height: 128
|
||||||
|
xOffset: 0
|
||||||
|
yOffset: 115.6
|
||||||
|
xAdvance: 128
|
||||||
|
scale: 1
|
||||||
|
name: 1f60b
|
||||||
|
hashCode: 57188339
|
||||||
|
unicode: 128523
|
||||||
|
pivot: {x: 0.5, y: 0.5}
|
||||||
|
sprite: {fileID: 0}
|
||||||
|
- id: 2
|
||||||
|
x: 256
|
||||||
|
y: 384
|
||||||
|
width: 128
|
||||||
|
height: 128
|
||||||
|
xOffset: 0
|
||||||
|
yOffset: 115.6
|
||||||
|
xAdvance: 128
|
||||||
|
scale: 1
|
||||||
|
name: 1f60d
|
||||||
|
hashCode: 57188341
|
||||||
|
unicode: 128525
|
||||||
|
pivot: {x: 0.5, y: 0.5}
|
||||||
|
sprite: {fileID: 0}
|
||||||
|
- id: 3
|
||||||
|
x: 384
|
||||||
|
y: 384
|
||||||
|
width: 128
|
||||||
|
height: 128
|
||||||
|
xOffset: 0
|
||||||
|
yOffset: 115.6
|
||||||
|
xAdvance: 128
|
||||||
|
scale: 1
|
||||||
|
name: 1f60e
|
||||||
|
hashCode: 57188340
|
||||||
|
unicode: 128526
|
||||||
|
pivot: {x: 0.5, y: 0.5}
|
||||||
|
sprite: {fileID: 0}
|
||||||
|
- id: 4
|
||||||
|
x: 0
|
||||||
|
y: 256
|
||||||
|
width: 128
|
||||||
|
height: 128
|
||||||
|
xOffset: 0
|
||||||
|
yOffset: 115.6
|
||||||
|
xAdvance: 128
|
||||||
|
scale: 1
|
||||||
|
name: Grinning face
|
||||||
|
hashCode: -95541379
|
||||||
|
unicode: 128512
|
||||||
|
pivot: {x: 0.5, y: 0.5}
|
||||||
|
sprite: {fileID: 0}
|
||||||
|
- id: 5
|
||||||
|
x: 128
|
||||||
|
y: 256
|
||||||
|
width: 128
|
||||||
|
height: 128
|
||||||
|
xOffset: 0
|
||||||
|
yOffset: 115.6
|
||||||
|
xAdvance: 128
|
||||||
|
scale: 1
|
||||||
|
name: 1f601
|
||||||
|
hashCode: 57188256
|
||||||
|
unicode: 128513
|
||||||
|
pivot: {x: 0.5, y: 0.5}
|
||||||
|
sprite: {fileID: 0}
|
||||||
|
- id: 6
|
||||||
|
x: 256
|
||||||
|
y: 256
|
||||||
|
width: 128
|
||||||
|
height: 128
|
||||||
|
xOffset: 0
|
||||||
|
yOffset: 115.6
|
||||||
|
xAdvance: 128
|
||||||
|
scale: 1
|
||||||
|
name: Face with tears of joy
|
||||||
|
hashCode: 239522663
|
||||||
|
unicode: 128514
|
||||||
|
pivot: {x: 0.5, y: 0.5}
|
||||||
|
sprite: {fileID: 0}
|
||||||
|
- id: 7
|
||||||
|
x: 384
|
||||||
|
y: 256
|
||||||
|
width: 128
|
||||||
|
height: 128
|
||||||
|
xOffset: 0
|
||||||
|
yOffset: 115.6
|
||||||
|
xAdvance: 128
|
||||||
|
scale: 1
|
||||||
|
name: 1f603
|
||||||
|
hashCode: 57188258
|
||||||
|
unicode: 128515
|
||||||
|
pivot: {x: 0.5, y: 0.5}
|
||||||
|
sprite: {fileID: 0}
|
||||||
|
- id: 8
|
||||||
|
x: 0
|
||||||
|
y: 128
|
||||||
|
width: 128
|
||||||
|
height: 128
|
||||||
|
xOffset: 0
|
||||||
|
yOffset: 115.6
|
||||||
|
xAdvance: 128
|
||||||
|
scale: 1
|
||||||
|
name: 1f604
|
||||||
|
hashCode: 57188261
|
||||||
|
unicode: 128516
|
||||||
|
pivot: {x: 0.5, y: 0.5}
|
||||||
|
sprite: {fileID: 0}
|
||||||
|
- id: 9
|
||||||
|
x: 128
|
||||||
|
y: 128
|
||||||
|
width: 128
|
||||||
|
height: 128
|
||||||
|
xOffset: 0
|
||||||
|
yOffset: 115.6
|
||||||
|
xAdvance: 128
|
||||||
|
scale: 1
|
||||||
|
name: 1f605
|
||||||
|
hashCode: 57188260
|
||||||
|
unicode: 128517
|
||||||
|
pivot: {x: 0.5, y: 0.5}
|
||||||
|
sprite: {fileID: 0}
|
||||||
|
- id: 10
|
||||||
|
x: 256
|
||||||
|
y: 128
|
||||||
|
width: 128
|
||||||
|
height: 128
|
||||||
|
xOffset: 0
|
||||||
|
yOffset: 115.6
|
||||||
|
xAdvance: 128
|
||||||
|
scale: 1
|
||||||
|
name: 1f606
|
||||||
|
hashCode: 57188263
|
||||||
|
unicode: 128518
|
||||||
|
pivot: {x: 0.5, y: 0.5}
|
||||||
|
sprite: {fileID: 0}
|
||||||
|
- id: 11
|
||||||
|
x: 384
|
||||||
|
y: 128
|
||||||
|
width: 128
|
||||||
|
height: 128
|
||||||
|
xOffset: 0
|
||||||
|
yOffset: 115.6
|
||||||
|
xAdvance: 128
|
||||||
|
scale: 1
|
||||||
|
name: 1f609
|
||||||
|
hashCode: 57188264
|
||||||
|
unicode: 128521
|
||||||
|
pivot: {x: 0.5, y: 0.5}
|
||||||
|
sprite: {fileID: 0}
|
||||||
|
- id: 12
|
||||||
|
x: 0
|
||||||
|
y: 0
|
||||||
|
width: 128
|
||||||
|
height: 128
|
||||||
|
xOffset: 0
|
||||||
|
yOffset: 115.6
|
||||||
|
xAdvance: 128
|
||||||
|
scale: 1
|
||||||
|
name: 1f618
|
||||||
|
hashCode: 57188168
|
||||||
|
unicode: 128536
|
||||||
|
pivot: {x: 0.5, y: 0.5}
|
||||||
|
sprite: {fileID: 0}
|
||||||
|
- id: 13
|
||||||
|
x: 128
|
||||||
|
y: 0
|
||||||
|
width: 128
|
||||||
|
height: 128
|
||||||
|
xOffset: 0
|
||||||
|
yOffset: 115.6
|
||||||
|
xAdvance: 128
|
||||||
|
scale: 1
|
||||||
|
name: 1f923
|
||||||
|
hashCode: 57200239
|
||||||
|
unicode: 129315
|
||||||
|
pivot: {x: 0.5, y: 0.5}
|
||||||
|
sprite: {fileID: 0}
|
||||||
|
- id: 14
|
||||||
|
x: 256
|
||||||
|
y: 0
|
||||||
|
width: 128
|
||||||
|
height: 128
|
||||||
|
xOffset: 0
|
||||||
|
yOffset: 115.6
|
||||||
|
xAdvance: 128
|
||||||
|
scale: 1
|
||||||
|
name: 263a
|
||||||
|
hashCode: 1748406
|
||||||
|
unicode: 9786
|
||||||
|
pivot: {x: 0.5, y: 0.5}
|
||||||
|
sprite: {fileID: 0}
|
||||||
|
- id: 15
|
||||||
|
x: 384
|
||||||
|
y: 0
|
||||||
|
width: 128
|
||||||
|
height: 128
|
||||||
|
xOffset: 0
|
||||||
|
yOffset: 115.6
|
||||||
|
xAdvance: 128
|
||||||
|
scale: 1
|
||||||
|
name: 2639
|
||||||
|
hashCode: 1748462
|
||||||
|
unicode: 9785
|
||||||
|
pivot: {x: 0.5, y: 0.5}
|
||||||
|
sprite: {fileID: 0}
|
||||||
|
fallbackSpriteAssets: []
|
||||||
|
--- !u!21 &1369835458
|
||||||
|
Material:
|
||||||
|
serializedVersion: 6
|
||||||
|
m_ObjectHideFlags: 1
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: TextMeshPro/Sprite
|
||||||
|
m_Shader: {fileID: 4800000, guid: cf81c85f95fe47e1a27f6ae460cf182c, type: 3}
|
||||||
|
m_ShaderKeywords:
|
||||||
|
m_LightmapFlags: 5
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: -1
|
||||||
|
stringTagMap: {}
|
||||||
|
disabledShaderPasses: []
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs: []
|
||||||
|
m_Floats: []
|
||||||
|
m_Colors: []
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: c41005c129ba4d66911b75229fd70b45
|
||||||
|
timeCreated: 1480316912
|
||||||
|
licenseType: Pro
|
||||||
|
NativeFormatImporter:
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
9
Assets/TextMesh Pro/Resources/Style Sheets.meta
Normal file
9
Assets/TextMesh Pro/Resources/Style Sheets.meta
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 4aecb92fff08436c8303b10eab8da368
|
||||||
|
folderAsset: yes
|
||||||
|
timeCreated: 1441876950
|
||||||
|
licenseType: Pro
|
||||||
|
DefaultImporter:
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user