Делаю режим строительства
This commit is contained in:
1 parent
09be8e6737
commit
4ccd30d788
11 files changed
+1422
-163
No files matched your search
@@ -24,16 +24,20 @@ Material:
|
||||
m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3}
|
||||
m_Parent: {fileID: 0}
|
||||
m_ModifiedSerializedProperties: 0
|
||||
m_ValidKeywords: []
|
||||
m_ValidKeywords:
|
||||
- _ALPHAPREMULTIPLY_ON
|
||||
- _SURFACE_TYPE_TRANSPARENT
|
||||
m_InvalidKeywords: []
|
||||
m_LightmapFlags: 4
|
||||
m_EnableInstancingVariants: 0
|
||||
m_DoubleSidedGI: 0
|
||||
m_CustomRenderQueue: -1
|
||||
m_CustomRenderQueue: 3000
|
||||
stringTagMap:
|
||||
RenderType: Opaque
|
||||
RenderType: Transparent
|
||||
disabledShaderPasses:
|
||||
- MOTIONVECTORS
|
||||
- DepthOnly
|
||||
- SHADOWCASTER
|
||||
m_LockedProperties:
|
||||
m_SavedProperties:
|
||||
serializedVersion: 3
|
||||
@@ -108,8 +112,8 @@ Material:
|
||||
- _Cutoff: 0.5
|
||||
- _DetailAlbedoMapScale: 1
|
||||
- _DetailNormalMapScale: 1
|
||||
- _DstBlend: 0
|
||||
- _DstBlendAlpha: 0
|
||||
- _DstBlend: 10
|
||||
- _DstBlendAlpha: 10
|
||||
- _EnvironmentReflections: 1
|
||||
- _GlossMapScale: 0
|
||||
- _Glossiness: 0
|
||||
@@ -124,10 +128,10 @@ Material:
|
||||
- _SpecularHighlights: 1
|
||||
- _SrcBlend: 1
|
||||
- _SrcBlendAlpha: 1
|
||||
- _Surface: 0
|
||||
- _Surface: 1
|
||||
- _WorkflowMode: 1
|
||||
- _XRMotionVectorsPass: 1
|
||||
- _ZWrite: 1
|
||||
- _ZWrite: 0
|
||||
m_Colors:
|
||||
- _BaseColor: {r: 0.9433962, g: 0.8992202, b: 0.6897472, a: 1}
|
||||
- _Color: {r: 0.9433962, g: 0.8992202, b: 0.68974715, a: 1}
|
||||
|
||||
@@ -11,7 +11,6 @@ GameObject:
|
||||
- component: {fileID: 1018998086840047847}
|
||||
- component: {fileID: 4970952238690329856}
|
||||
- component: {fileID: 7003299022758411258}
|
||||
- component: {fileID: 1005817561743174885}
|
||||
m_Layer: 0
|
||||
m_Name: Box005
|
||||
m_TagString: Untagged
|
||||
@@ -91,27 +90,6 @@ MeshRenderer:
|
||||
m_SortingOrder: 0
|
||||
m_MaskInteraction: 0
|
||||
m_AdditionalVertexStreams: {fileID: 0}
|
||||
--- !u!65 &1005817561743174885
|
||||
BoxCollider:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1464812705406797042}
|
||||
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.9944859, y: 1.1038814, z: 0.6623524}
|
||||
m_Center: {x: 0.98224294, y: 0.13957393, z: 0.3311762}
|
||||
--- !u!1 &2946409963760286605
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -211,7 +189,9 @@ GameObject:
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1702081965848965580}
|
||||
- component: {fileID: 4321118857871794606}
|
||||
- component: {fileID: 1887103250213573559}
|
||||
- component: {fileID: 592039360660023171}
|
||||
- component: {fileID: 1795375044415776546}
|
||||
m_Layer: 0
|
||||
m_Name: BedModel
|
||||
m_TagString: Untagged
|
||||
@@ -236,25 +216,66 @@ Transform:
|
||||
- {fileID: 8233732618941364376}
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!95 &4321118857871794606
|
||||
Animator:
|
||||
serializedVersion: 7
|
||||
--- !u!65 &1887103250213573559
|
||||
BoxCollider:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 7353988610613066599}
|
||||
m_Material: {fileID: 0}
|
||||
m_IncludeLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 0
|
||||
m_ExcludeLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 0
|
||||
m_LayerOverridePriority: 0
|
||||
m_IsTrigger: 1
|
||||
m_ProvidesContacts: 0
|
||||
m_Enabled: 1
|
||||
serializedVersion: 3
|
||||
m_Size: {x: 2, y: 0.69, z: 1.15}
|
||||
m_Center: {x: -0.15, y: 0.34, z: -0.165}
|
||||
--- !u!54 &592039360660023171
|
||||
Rigidbody:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 7353988610613066599}
|
||||
serializedVersion: 5
|
||||
m_Mass: 1
|
||||
m_LinearDamping: 0
|
||||
m_AngularDamping: 0.05
|
||||
m_CenterOfMass: {x: 0, y: 0, z: 0}
|
||||
m_InertiaTensor: {x: 1, y: 1, z: 1}
|
||||
m_InertiaRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_IncludeLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 0
|
||||
m_ExcludeLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 0
|
||||
m_ImplicitCom: 1
|
||||
m_ImplicitTensor: 1
|
||||
m_UseGravity: 1
|
||||
m_IsKinematic: 1
|
||||
m_Interpolate: 0
|
||||
m_Constraints: 0
|
||||
m_CollisionDetection: 0
|
||||
--- !u!114 &1795375044415776546
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 7353988610613066599}
|
||||
m_Enabled: 1
|
||||
m_Avatar: {fileID: 9000000, guid: 196088a2b2935a84b9a131ae31e3feed, type: 3}
|
||||
m_Controller: {fileID: 0}
|
||||
m_CullingMode: 0
|
||||
m_UpdateMode: 0
|
||||
m_ApplyRootMotion: 0
|
||||
m_LinearVelocityBlending: 0
|
||||
m_StabilizeFeet: 0
|
||||
m_AnimatePhysics: 0
|
||||
m_WarningMessage:
|
||||
m_HasTransformHierarchy: 1
|
||||
m_AllowConstantClipSamplingOptimization: 1
|
||||
m_KeepAnimatorStateOnDisable: 0
|
||||
m_WriteDefaultValuesOnDisable: 0
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 7196b5f65c7bcd143b0f035424936bef, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: Assembly-CSharp::FurnitureObject
|
||||
obstacleLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 64
|
||||
@@ -11,7 +11,6 @@ GameObject:
|
||||
- component: {fileID: 3543679872780995405}
|
||||
- component: {fileID: 3589558213014155729}
|
||||
- component: {fileID: 8631728746311645272}
|
||||
- component: {fileID: 7920589969060443913}
|
||||
m_Layer: 0
|
||||
m_Name: ChairModel
|
||||
m_TagString: Untagged
|
||||
@@ -91,27 +90,6 @@ MeshRenderer:
|
||||
m_SortingOrder: 0
|
||||
m_MaskInteraction: 0
|
||||
m_AdditionalVertexStreams: {fileID: 0}
|
||||
--- !u!65 &7920589969060443913
|
||||
BoxCollider:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2861779277136898572}
|
||||
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: 0.41389975, y: 0.41913465, z: 0.85000014}
|
||||
m_Center: {x: 0.19684987, y: 0.1575069, z: 0.42500007}
|
||||
--- !u!1 &4123926039959076112
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -121,6 +99,9 @@ GameObject:
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 8861822013198242088}
|
||||
- component: {fileID: 6113281948169220684}
|
||||
- component: {fileID: 3744240298783082463}
|
||||
- component: {fileID: 3948069758884606941}
|
||||
m_Layer: 0
|
||||
m_Name: Chair
|
||||
m_TagString: Untagged
|
||||
@@ -144,3 +125,66 @@ Transform:
|
||||
- {fileID: 3543679872780995405}
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!65 &6113281948169220684
|
||||
BoxCollider:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4123926039959076112}
|
||||
m_Material: {fileID: 0}
|
||||
m_IncludeLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 0
|
||||
m_ExcludeLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 0
|
||||
m_LayerOverridePriority: 0
|
||||
m_IsTrigger: 1
|
||||
m_ProvidesContacts: 0
|
||||
m_Enabled: 1
|
||||
serializedVersion: 3
|
||||
m_Size: {x: 0.46, y: 0.87, z: 0.42}
|
||||
m_Center: {x: 0.01, y: 0.42, z: -0.04}
|
||||
--- !u!54 &3744240298783082463
|
||||
Rigidbody:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4123926039959076112}
|
||||
serializedVersion: 5
|
||||
m_Mass: 1
|
||||
m_LinearDamping: 0
|
||||
m_AngularDamping: 0.05
|
||||
m_CenterOfMass: {x: 0, y: 0, z: 0}
|
||||
m_InertiaTensor: {x: 1, y: 1, z: 1}
|
||||
m_InertiaRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_IncludeLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 0
|
||||
m_ExcludeLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 0
|
||||
m_ImplicitCom: 1
|
||||
m_ImplicitTensor: 1
|
||||
m_UseGravity: 1
|
||||
m_IsKinematic: 1
|
||||
m_Interpolate: 0
|
||||
m_Constraints: 0
|
||||
m_CollisionDetection: 0
|
||||
--- !u!114 &3948069758884606941
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4123926039959076112}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 7196b5f65c7bcd143b0f035424936bef, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: Assembly-CSharp::FurnitureObject
|
||||
obstacleLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 64
|
||||
@@ -9,6 +9,9 @@ GameObject:
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 2794549410298307386}
|
||||
- component: {fileID: 4101136950142739221}
|
||||
- component: {fileID: 1418986442002906932}
|
||||
- component: {fileID: 3584475047233381736}
|
||||
m_Layer: 0
|
||||
m_Name: Shkaf-xyi
|
||||
m_TagString: Untagged
|
||||
@@ -32,6 +35,69 @@ Transform:
|
||||
- {fileID: 8567565660498256902}
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!65 &4101136950142739221
|
||||
BoxCollider:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1516859676564360999}
|
||||
m_Material: {fileID: 0}
|
||||
m_IncludeLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 0
|
||||
m_ExcludeLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 0
|
||||
m_LayerOverridePriority: 0
|
||||
m_IsTrigger: 1
|
||||
m_ProvidesContacts: 0
|
||||
m_Enabled: 1
|
||||
serializedVersion: 3
|
||||
m_Size: {x: 1.66, y: 1.7, z: 0.55}
|
||||
m_Center: {x: -0.045, y: 0.86, z: 0}
|
||||
--- !u!54 &1418986442002906932
|
||||
Rigidbody:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1516859676564360999}
|
||||
serializedVersion: 5
|
||||
m_Mass: 1
|
||||
m_LinearDamping: 0
|
||||
m_AngularDamping: 0.05
|
||||
m_CenterOfMass: {x: 0, y: 0, z: 0}
|
||||
m_InertiaTensor: {x: 1, y: 1, z: 1}
|
||||
m_InertiaRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_IncludeLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 0
|
||||
m_ExcludeLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 0
|
||||
m_ImplicitCom: 1
|
||||
m_ImplicitTensor: 1
|
||||
m_UseGravity: 1
|
||||
m_IsKinematic: 1
|
||||
m_Interpolate: 0
|
||||
m_Constraints: 0
|
||||
m_CollisionDetection: 0
|
||||
--- !u!114 &3584475047233381736
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1516859676564360999}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 7196b5f65c7bcd143b0f035424936bef, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: Assembly-CSharp::FurnitureObject
|
||||
obstacleLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 64
|
||||
--- !u!1 &2223453478642396515
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -43,7 +109,6 @@ GameObject:
|
||||
- component: {fileID: 8567565660498256902}
|
||||
- component: {fileID: 221773553204112875}
|
||||
- component: {fileID: 7291908968218869094}
|
||||
- component: {fileID: 1552207508401904174}
|
||||
m_Layer: 0
|
||||
m_Name: stioka
|
||||
m_TagString: Untagged
|
||||
@@ -124,24 +189,3 @@ MeshRenderer:
|
||||
m_SortingOrder: 0
|
||||
m_MaskInteraction: 0
|
||||
m_AdditionalVertexStreams: {fileID: 0}
|
||||
--- !u!65 &1552207508401904174
|
||||
BoxCollider:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2223453478642396515}
|
||||
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: 0.01, y: 0.03, z: 0.025}
|
||||
m_Center: {x: -0.0005, y: 0, z: -0.001}
|
||||
@@ -119,6 +119,264 @@ NavMeshSettings:
|
||||
debug:
|
||||
m_Flags: 0
|
||||
m_NavMeshData: {fileID: 0}
|
||||
--- !u!1 &48729973
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 48729974}
|
||||
- component: {fileID: 48729977}
|
||||
- component: {fileID: 48729976}
|
||||
- component: {fileID: 48729975}
|
||||
m_Layer: 5
|
||||
m_Name: Move
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &48729974
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 48729973}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 60870013}
|
||||
m_Father: {fileID: 1960919037}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: 270, y: -1835}
|
||||
m_SizeDelta: {x: 250, y: 250}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &48729975
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 48729973}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Button
|
||||
m_Navigation:
|
||||
m_Mode: 3
|
||||
m_WrapAround: 0
|
||||
m_SelectOnUp: {fileID: 0}
|
||||
m_SelectOnDown: {fileID: 0}
|
||||
m_SelectOnLeft: {fileID: 0}
|
||||
m_SelectOnRight: {fileID: 0}
|
||||
m_Transition: 1
|
||||
m_Colors:
|
||||
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
|
||||
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
|
||||
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
|
||||
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
|
||||
m_ColorMultiplier: 1
|
||||
m_FadeDuration: 0.1
|
||||
m_SpriteState:
|
||||
m_HighlightedSprite: {fileID: 0}
|
||||
m_PressedSprite: {fileID: 0}
|
||||
m_SelectedSprite: {fileID: 0}
|
||||
m_DisabledSprite: {fileID: 0}
|
||||
m_AnimationTriggers:
|
||||
m_NormalTrigger: Normal
|
||||
m_HighlightedTrigger: Highlighted
|
||||
m_PressedTrigger: Pressed
|
||||
m_SelectedTrigger: Selected
|
||||
m_DisabledTrigger: Disabled
|
||||
m_Interactable: 1
|
||||
m_TargetGraphic: {fileID: 48729976}
|
||||
m_OnClick:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
--- !u!114 &48729976
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 48729973}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_Sprite: {fileID: 10913, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
m_PixelsPerUnitMultiplier: 1
|
||||
--- !u!222 &48729977
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 48729973}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!1 &60870012
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 60870013}
|
||||
- component: {fileID: 60870015}
|
||||
- component: {fileID: 60870014}
|
||||
m_Layer: 5
|
||||
m_Name: Text (TMP)
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &60870013
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 60870012}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 48729974}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &60870014
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 60870012}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: Unity.TextMeshPro::TMPro.TextMeshProUGUI
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_text: Move
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
||||
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
||||
m_fontSharedMaterials: []
|
||||
m_fontMaterial: {fileID: 0}
|
||||
m_fontMaterials: []
|
||||
m_fontColor32:
|
||||
serializedVersion: 2
|
||||
rgba: 4281479730
|
||||
m_fontColor: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1}
|
||||
m_enableVertexGradient: 0
|
||||
m_colorMode: 3
|
||||
m_fontColorGradient:
|
||||
topLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||
topRight: {r: 1, g: 1, b: 1, a: 1}
|
||||
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||
bottomRight: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_fontColorGradientPreset: {fileID: 0}
|
||||
m_spriteAsset: {fileID: 0}
|
||||
m_tintAllSprites: 0
|
||||
m_StyleSheet: {fileID: 0}
|
||||
m_TextStyleHashCode: -1183493901
|
||||
m_overrideHtmlColors: 0
|
||||
m_faceColor:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontSize: 65
|
||||
m_fontSizeBase: 65
|
||||
m_fontWeight: 400
|
||||
m_enableAutoSizing: 0
|
||||
m_fontSizeMin: 18
|
||||
m_fontSizeMax: 72
|
||||
m_fontStyle: 0
|
||||
m_HorizontalAlignment: 2
|
||||
m_VerticalAlignment: 512
|
||||
m_textAlignment: 65535
|
||||
m_characterSpacing: 0
|
||||
m_characterHorizontalScale: 1
|
||||
m_wordSpacing: 0
|
||||
m_lineSpacing: 0
|
||||
m_lineSpacingMax: 0
|
||||
m_paragraphSpacing: 0
|
||||
m_charWidthMaxAdj: 0
|
||||
m_TextWrappingMode: 1
|
||||
m_wordWrappingRatios: 0.4
|
||||
m_overflowMode: 0
|
||||
m_linkedTextComponent: {fileID: 0}
|
||||
parentLinkedComponent: {fileID: 0}
|
||||
m_enableKerning: 0
|
||||
m_ActiveFontFeatures: 6e72656b
|
||||
m_enableExtraPadding: 0
|
||||
checkPaddingRequired: 0
|
||||
m_isRichText: 1
|
||||
m_EmojiFallbackSupport: 1
|
||||
m_parseCtrlCharacters: 1
|
||||
m_isOrthographic: 1
|
||||
m_isCullingEnabled: 0
|
||||
m_horizontalMapping: 0
|
||||
m_verticalMapping: 0
|
||||
m_uvLineOffset: 0
|
||||
m_geometrySortingOrder: 0
|
||||
m_IsTextObjectScaleStatic: 0
|
||||
m_VertexBufferAutoSizeReduction: 0
|
||||
m_useMaxVisibleDescender: 1
|
||||
m_pageToDisplay: 1
|
||||
m_margin: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_isUsingLegacyAnimationComponent: 0
|
||||
m_isVolumetricText: 0
|
||||
m_hasFontAssetChanged: 0
|
||||
m_baseMaterial: {fileID: 0}
|
||||
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
|
||||
--- !u!222 &60870015
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 60870012}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!1 &145994554
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -246,6 +504,127 @@ Transform:
|
||||
m_Children: []
|
||||
m_Father: {fileID: 822502604}
|
||||
m_LocalEulerAnglesHint: {x: 24.144, y: 99.802, z: -5.906}
|
||||
--- !u!1 &253877481
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 253877482}
|
||||
- component: {fileID: 253877485}
|
||||
- component: {fileID: 253877484}
|
||||
- component: {fileID: 253877483}
|
||||
m_Layer: 5
|
||||
m_Name: Close
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &253877482
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 253877481}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 1341508015}
|
||||
m_Father: {fileID: 1960919037}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: 810, y: -1835}
|
||||
m_SizeDelta: {x: 250, y: 250}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &253877483
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 253877481}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Button
|
||||
m_Navigation:
|
||||
m_Mode: 3
|
||||
m_WrapAround: 0
|
||||
m_SelectOnUp: {fileID: 0}
|
||||
m_SelectOnDown: {fileID: 0}
|
||||
m_SelectOnLeft: {fileID: 0}
|
||||
m_SelectOnRight: {fileID: 0}
|
||||
m_Transition: 1
|
||||
m_Colors:
|
||||
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
|
||||
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
|
||||
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
|
||||
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
|
||||
m_ColorMultiplier: 1
|
||||
m_FadeDuration: 0.1
|
||||
m_SpriteState:
|
||||
m_HighlightedSprite: {fileID: 0}
|
||||
m_PressedSprite: {fileID: 0}
|
||||
m_SelectedSprite: {fileID: 0}
|
||||
m_DisabledSprite: {fileID: 0}
|
||||
m_AnimationTriggers:
|
||||
m_NormalTrigger: Normal
|
||||
m_HighlightedTrigger: Highlighted
|
||||
m_PressedTrigger: Pressed
|
||||
m_SelectedTrigger: Selected
|
||||
m_DisabledTrigger: Disabled
|
||||
m_Interactable: 1
|
||||
m_TargetGraphic: {fileID: 253877484}
|
||||
m_OnClick:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
--- !u!114 &253877484
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 253877481}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 0.6243767, g: 1, b: 0.5518868, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_Sprite: {fileID: 10913, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
m_PixelsPerUnitMultiplier: 1
|
||||
--- !u!222 &253877485
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 253877481}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!1 &330585543
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -407,6 +786,9 @@ MonoBehaviour:
|
||||
addingHeight: 5
|
||||
rotationSpeed: 0.2
|
||||
currentAngle: 45
|
||||
panSpeed: 0.01
|
||||
zoomThresholdForPan: 15
|
||||
maxPanDistance: 10
|
||||
smoothTime: 0.1
|
||||
touchDeadZone: 1.5
|
||||
--- !u!1 &394085706
|
||||
@@ -1287,6 +1669,8 @@ MonoBehaviour:
|
||||
serializedVersion: 2
|
||||
m_Bits: 8
|
||||
shopPanel: {fileID: 530281708}
|
||||
editPanel: {fileID: 0}
|
||||
rotationSpeed: 5
|
||||
--- !u!4 &1083789784
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -1397,7 +1781,7 @@ Canvas:
|
||||
serializedVersion: 3
|
||||
m_RenderMode: 1
|
||||
m_Camera: {fileID: 330585545}
|
||||
m_PlaneDistance: 10
|
||||
m_PlaneDistance: 3
|
||||
m_PixelPerfect: 1
|
||||
m_ReceivesEvents: 1
|
||||
m_OverrideSorting: 0
|
||||
@@ -1423,6 +1807,7 @@ RectTransform:
|
||||
m_Children:
|
||||
- {fileID: 1322712974}
|
||||
- {fileID: 530281709}
|
||||
- {fileID: 1960919037}
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
@@ -1479,6 +1864,7 @@ MonoBehaviour:
|
||||
connectedWall1: {fileID: 5379502531655792496}
|
||||
connectedWall2: {fileID: 5651562763145373440}
|
||||
hideThreshold: 0
|
||||
fadeSpeed: 3
|
||||
--- !u!4 &1266985336
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -1717,6 +2103,143 @@ CanvasRenderer:
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1322712973}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!1 &1341508014
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1341508015}
|
||||
- component: {fileID: 1341508017}
|
||||
- component: {fileID: 1341508016}
|
||||
m_Layer: 5
|
||||
m_Name: Text (TMP)
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &1341508015
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1341508014}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 253877482}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &1341508016
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1341508014}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: Unity.TextMeshPro::TMPro.TextMeshProUGUI
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_text: Close
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
||||
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
||||
m_fontSharedMaterials: []
|
||||
m_fontMaterial: {fileID: 0}
|
||||
m_fontMaterials: []
|
||||
m_fontColor32:
|
||||
serializedVersion: 2
|
||||
rgba: 4281479730
|
||||
m_fontColor: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1}
|
||||
m_enableVertexGradient: 0
|
||||
m_colorMode: 3
|
||||
m_fontColorGradient:
|
||||
topLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||
topRight: {r: 1, g: 1, b: 1, a: 1}
|
||||
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||
bottomRight: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_fontColorGradientPreset: {fileID: 0}
|
||||
m_spriteAsset: {fileID: 0}
|
||||
m_tintAllSprites: 0
|
||||
m_StyleSheet: {fileID: 0}
|
||||
m_TextStyleHashCode: -1183493901
|
||||
m_overrideHtmlColors: 0
|
||||
m_faceColor:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontSize: 66
|
||||
m_fontSizeBase: 66
|
||||
m_fontWeight: 400
|
||||
m_enableAutoSizing: 0
|
||||
m_fontSizeMin: 18
|
||||
m_fontSizeMax: 72
|
||||
m_fontStyle: 0
|
||||
m_HorizontalAlignment: 2
|
||||
m_VerticalAlignment: 512
|
||||
m_textAlignment: 65535
|
||||
m_characterSpacing: 0
|
||||
m_characterHorizontalScale: 1
|
||||
m_wordSpacing: 0
|
||||
m_lineSpacing: 0
|
||||
m_lineSpacingMax: 0
|
||||
m_paragraphSpacing: 0
|
||||
m_charWidthMaxAdj: 0
|
||||
m_TextWrappingMode: 1
|
||||
m_wordWrappingRatios: 0.4
|
||||
m_overflowMode: 0
|
||||
m_linkedTextComponent: {fileID: 0}
|
||||
parentLinkedComponent: {fileID: 0}
|
||||
m_enableKerning: 0
|
||||
m_ActiveFontFeatures: 6e72656b
|
||||
m_enableExtraPadding: 0
|
||||
checkPaddingRequired: 0
|
||||
m_isRichText: 1
|
||||
m_EmojiFallbackSupport: 1
|
||||
m_parseCtrlCharacters: 1
|
||||
m_isOrthographic: 1
|
||||
m_isCullingEnabled: 0
|
||||
m_horizontalMapping: 0
|
||||
m_verticalMapping: 0
|
||||
m_uvLineOffset: 0
|
||||
m_geometrySortingOrder: 0
|
||||
m_IsTextObjectScaleStatic: 0
|
||||
m_VertexBufferAutoSizeReduction: 0
|
||||
m_useMaxVisibleDescender: 1
|
||||
m_pageToDisplay: 1
|
||||
m_margin: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_isUsingLegacyAnimationComponent: 0
|
||||
m_isVolumetricText: 0
|
||||
m_hasFontAssetChanged: 0
|
||||
m_baseMaterial: {fileID: 0}
|
||||
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
|
||||
--- !u!222 &1341508017
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1341508014}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!1 &1517225298
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -2037,6 +2560,369 @@ CanvasRenderer:
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1631907674}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!1 &1660534836
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1660534837}
|
||||
- component: {fileID: 1660534840}
|
||||
- component: {fileID: 1660534839}
|
||||
- component: {fileID: 1660534838}
|
||||
m_Layer: 5
|
||||
m_Name: Rotate
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &1660534837
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1660534836}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: -0.00022299468}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 1966106646}
|
||||
m_Father: {fileID: 1960919037}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: 540, y: -1835}
|
||||
m_SizeDelta: {x: 250, y: 250}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &1660534838
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1660534836}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Button
|
||||
m_Navigation:
|
||||
m_Mode: 3
|
||||
m_WrapAround: 0
|
||||
m_SelectOnUp: {fileID: 0}
|
||||
m_SelectOnDown: {fileID: 0}
|
||||
m_SelectOnLeft: {fileID: 0}
|
||||
m_SelectOnRight: {fileID: 0}
|
||||
m_Transition: 1
|
||||
m_Colors:
|
||||
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
|
||||
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
|
||||
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
|
||||
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
|
||||
m_ColorMultiplier: 1
|
||||
m_FadeDuration: 0.1
|
||||
m_SpriteState:
|
||||
m_HighlightedSprite: {fileID: 0}
|
||||
m_PressedSprite: {fileID: 0}
|
||||
m_SelectedSprite: {fileID: 0}
|
||||
m_DisabledSprite: {fileID: 0}
|
||||
m_AnimationTriggers:
|
||||
m_NormalTrigger: Normal
|
||||
m_HighlightedTrigger: Highlighted
|
||||
m_PressedTrigger: Pressed
|
||||
m_SelectedTrigger: Selected
|
||||
m_DisabledTrigger: Disabled
|
||||
m_Interactable: 1
|
||||
m_TargetGraphic: {fileID: 1660534839}
|
||||
m_OnClick:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
--- !u!114 &1660534839
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1660534836}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_Sprite: {fileID: 10913, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
m_PixelsPerUnitMultiplier: 1
|
||||
--- !u!222 &1660534840
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1660534836}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!1 &1960919036
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1960919037}
|
||||
- component: {fileID: 1960919040}
|
||||
- component: {fileID: 1960919039}
|
||||
- component: {fileID: 1960919038}
|
||||
m_Layer: 5
|
||||
m_Name: EditPanel
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 0
|
||||
--- !u!224 &1960919037
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1960919036}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 48729974}
|
||||
- {fileID: 1660534837}
|
||||
- {fileID: 253877482}
|
||||
m_Father: {fileID: 1229700322}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &1960919038
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1960919036}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 30649d3a9faa99c48a7b1166b86bf2a0, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.HorizontalLayoutGroup
|
||||
m_Padding:
|
||||
m_Left: 0
|
||||
m_Right: 0
|
||||
m_Top: 0
|
||||
m_Bottom: 200
|
||||
m_ChildAlignment: 7
|
||||
m_Spacing: 20
|
||||
m_ChildForceExpandWidth: 0
|
||||
m_ChildForceExpandHeight: 1
|
||||
m_ChildControlWidth: 0
|
||||
m_ChildControlHeight: 0
|
||||
m_ChildScaleWidth: 0
|
||||
m_ChildScaleHeight: 0
|
||||
m_ReverseArrangement: 0
|
||||
--- !u!114 &1960919039
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1960919036}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 0}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_Sprite: {fileID: 10907, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_Type: 1
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
m_PixelsPerUnitMultiplier: 1
|
||||
--- !u!222 &1960919040
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1960919036}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!1 &1966106645
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1966106646}
|
||||
- component: {fileID: 1966106648}
|
||||
- component: {fileID: 1966106647}
|
||||
m_Layer: 5
|
||||
m_Name: Text (TMP)
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &1966106646
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1966106645}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 1660534837}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &1966106647
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1966106645}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: Unity.TextMeshPro::TMPro.TextMeshProUGUI
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_text: Rotate
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
||||
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
||||
m_fontSharedMaterials: []
|
||||
m_fontMaterial: {fileID: 0}
|
||||
m_fontMaterials: []
|
||||
m_fontColor32:
|
||||
serializedVersion: 2
|
||||
rgba: 4281479730
|
||||
m_fontColor: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1}
|
||||
m_enableVertexGradient: 0
|
||||
m_colorMode: 3
|
||||
m_fontColorGradient:
|
||||
topLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||
topRight: {r: 1, g: 1, b: 1, a: 1}
|
||||
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||
bottomRight: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_fontColorGradientPreset: {fileID: 0}
|
||||
m_spriteAsset: {fileID: 0}
|
||||
m_tintAllSprites: 0
|
||||
m_StyleSheet: {fileID: 0}
|
||||
m_TextStyleHashCode: -1183493901
|
||||
m_overrideHtmlColors: 0
|
||||
m_faceColor:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontSize: 65
|
||||
m_fontSizeBase: 65
|
||||
m_fontWeight: 400
|
||||
m_enableAutoSizing: 0
|
||||
m_fontSizeMin: 18
|
||||
m_fontSizeMax: 72
|
||||
m_fontStyle: 0
|
||||
m_HorizontalAlignment: 2
|
||||
m_VerticalAlignment: 512
|
||||
m_textAlignment: 65535
|
||||
m_characterSpacing: 0
|
||||
m_characterHorizontalScale: 1
|
||||
m_wordSpacing: 0
|
||||
m_lineSpacing: 0
|
||||
m_lineSpacingMax: 0
|
||||
m_paragraphSpacing: 0
|
||||
m_charWidthMaxAdj: 0
|
||||
m_TextWrappingMode: 1
|
||||
m_wordWrappingRatios: 0.4
|
||||
m_overflowMode: 0
|
||||
m_linkedTextComponent: {fileID: 0}
|
||||
parentLinkedComponent: {fileID: 0}
|
||||
m_enableKerning: 0
|
||||
m_ActiveFontFeatures: 6e72656b
|
||||
m_enableExtraPadding: 0
|
||||
checkPaddingRequired: 0
|
||||
m_isRichText: 1
|
||||
m_EmojiFallbackSupport: 1
|
||||
m_parseCtrlCharacters: 1
|
||||
m_isOrthographic: 1
|
||||
m_isCullingEnabled: 0
|
||||
m_horizontalMapping: 0
|
||||
m_verticalMapping: 0
|
||||
m_uvLineOffset: 0
|
||||
m_geometrySortingOrder: 0
|
||||
m_IsTextObjectScaleStatic: 0
|
||||
m_VertexBufferAutoSizeReduction: 0
|
||||
m_useMaxVisibleDescender: 1
|
||||
m_pageToDisplay: 1
|
||||
m_margin: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_isUsingLegacyAnimationComponent: 0
|
||||
m_isVolumetricText: 0
|
||||
m_hasFontAssetChanged: 0
|
||||
m_baseMaterial: {fileID: 0}
|
||||
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
|
||||
--- !u!222 &1966106648
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1966106645}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!4 &61794025157732506
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
|
||||
@@ -3,14 +3,12 @@ using UnityEngine;
|
||||
public class CameraController : MonoBehaviour
|
||||
{
|
||||
[Header("Настройки позиции камеры (Зум)")]
|
||||
[Tooltip("Стартовое расстояние от камеры до цели")]
|
||||
public float distance = 10f;
|
||||
public float minDistance = 3f;
|
||||
public float maxDistance = 30f;
|
||||
public float zoomSpeed = 0.05f;
|
||||
|
||||
[Header("Настройки цели (Ось Y)")]
|
||||
[Tooltip("Стартовая высота цели на оси Y")]
|
||||
public float targetY = 0f;
|
||||
public float minTargetY = 0f;
|
||||
public float maxTargetY = 15f;
|
||||
@@ -22,30 +20,41 @@ public class CameraController : MonoBehaviour
|
||||
[SerializeField]
|
||||
private float currentAngle = -45f;
|
||||
|
||||
[Header("Настройки смещения (Pan - НОВОЕ)")]
|
||||
[Tooltip("Скорость смещения камеры по горизонтали")]
|
||||
public float panSpeed = 0.03f;
|
||||
[Tooltip("При каком отдалении камеры разрешено смещение? (Если отдалить дальше - смещение сбросится)")]
|
||||
public float zoomThresholdForPan = 15f;
|
||||
[Tooltip("Максимальное смещение от центра комнаты")]
|
||||
public float maxPanDistance = 10f;
|
||||
|
||||
[Header("Настройки плавности (Сглаживание)")]
|
||||
[Tooltip("Время сглаживания. Чем больше значение, тем более плавно и с большей инерцией движется камера.")]
|
||||
[Range(0.01f, 0.5f)]
|
||||
public float smoothTime = 0.1f;
|
||||
|
||||
[Tooltip("Мертвая зона в пикселях. Отсекает микро-дрожание пальцев.")]
|
||||
public float touchDeadZone = 1.5f;
|
||||
|
||||
// ЦЕЛЕВЫЕ значения (куда камера должна стремиться прийти)
|
||||
// ЦЕЛЕВЫЕ значения
|
||||
private float _targetAngle;
|
||||
private float _targetY;
|
||||
private float _targetDistance;
|
||||
|
||||
// НОВОЕ: Целевое и текущее смещение по осям X и Z
|
||||
private Vector2 _targetPanOffset;
|
||||
private Vector2 _currentPanOffset;
|
||||
|
||||
// Внутренние переменные скорости (необходимы для работы функции Mathf.SmoothDamp)
|
||||
// Внутренние переменные скорости для SmoothDamp
|
||||
private float _angleVelocity;
|
||||
private float _yVelocity;
|
||||
private float _distanceVelocity;
|
||||
private Vector2 _panVelocity; // Скорость для смещения
|
||||
|
||||
void Start()
|
||||
{
|
||||
// Инициализируем целевые значения текущими при старте, чтобы камера не прыгала
|
||||
_targetAngle = currentAngle;
|
||||
_targetY = targetY;
|
||||
_targetDistance = distance;
|
||||
_targetPanOffset = Vector2.zero;
|
||||
_currentPanOffset = Vector2.zero;
|
||||
|
||||
UpdateCameraPosition();
|
||||
}
|
||||
@@ -53,6 +62,7 @@ public class CameraController : MonoBehaviour
|
||||
void LateUpdate()
|
||||
{
|
||||
HandleInput();
|
||||
CheckPanReset(); // Проверяем, не пора ли сбросить смещение
|
||||
SmoothMovement();
|
||||
UpdateCameraPosition();
|
||||
}
|
||||
@@ -64,22 +74,20 @@ public class CameraController : MonoBehaviour
|
||||
{
|
||||
Touch touch = Input.GetTouch(0);
|
||||
|
||||
// Проверяем, сдвинулся ли палец дальше "мертвой зоны", чтобы игнорировать дрожание
|
||||
if (touch.phase == TouchPhase.Moved && touch.deltaPosition.sqrMagnitude > touchDeadZone * touchDeadZone)
|
||||
{
|
||||
// Меняем ЦЕЛЕВЫЕ значения, а не саму камеру
|
||||
_targetAngle += touch.deltaPosition.x * rotationSpeed;
|
||||
|
||||
_targetY -= touch.deltaPosition.y * moveTargetSpeed;
|
||||
_targetY = Mathf.Clamp(_targetY, minTargetY, maxTargetY);
|
||||
}
|
||||
}
|
||||
// === 2. УПРАВЛЕНИЕ ДВУМЯ ПАЛЬЦАМИ (Зум) ===
|
||||
// === 2. УПРАВЛЕНИЕ ДВУМЯ ПАЛЬЦАМИ (Зум и Смещение) ===
|
||||
else if (Input.touchCount == 2)
|
||||
{
|
||||
Touch touch0 = Input.GetTouch(0);
|
||||
Touch touch1 = Input.GetTouch(1);
|
||||
|
||||
// -- Логика Зума --
|
||||
Vector2 touch0PrevPos = touch0.position - touch0.deltaPosition;
|
||||
Vector2 touch1PrevPos = touch1.position - touch1.deltaPosition;
|
||||
|
||||
@@ -88,47 +96,99 @@ public class CameraController : MonoBehaviour
|
||||
|
||||
float difference = currentMagnitude - prevMagnitude;
|
||||
|
||||
// Мертвая зона для зума
|
||||
if (Mathf.Abs(difference) > touchDeadZone)
|
||||
{
|
||||
_targetDistance -= difference * zoomSpeed;
|
||||
_targetDistance = Mathf.Clamp(_targetDistance, minDistance, maxDistance);
|
||||
}
|
||||
|
||||
// -- НОВОЕ: Логика смещения (Панорамирование) --
|
||||
// Разрешаем смещение только если камера достаточно близко
|
||||
if (_targetDistance <= zoomThresholdForPan)
|
||||
{
|
||||
// Берем среднее движение двух пальцев
|
||||
Vector2 avgDelta = (touch0.deltaPosition + touch1.deltaPosition) / 2f;
|
||||
ApplyPan(avgDelta.x, avgDelta.y);
|
||||
}
|
||||
}
|
||||
// === 3. МЫШЬ (Для редактора ПК) ===
|
||||
else if (Input.GetMouseButton(0))
|
||||
else
|
||||
{
|
||||
_targetAngle += Input.GetAxis("Mouse X") * rotationSpeed * 20f;
|
||||
_targetY -= Input.GetAxis("Mouse Y") * moveTargetSpeed * 20f;
|
||||
_targetY = Mathf.Clamp(_targetY, minTargetY, maxTargetY);
|
||||
}
|
||||
// Левая кнопка - Вращение и высота
|
||||
if (Input.GetMouseButton(0))
|
||||
{
|
||||
_targetAngle += Input.GetAxis("Mouse X") * rotationSpeed * 20f;
|
||||
_targetY -= Input.GetAxis("Mouse Y") * moveTargetSpeed * 20f;
|
||||
_targetY = Mathf.Clamp(_targetY, minTargetY, maxTargetY);
|
||||
}
|
||||
// НОВОЕ: Правая кнопка - Смещение (Pan)
|
||||
else if (Input.GetMouseButton(1) && _targetDistance <= zoomThresholdForPan)
|
||||
{
|
||||
ApplyPan(Input.GetAxis("Mouse X") * 20f, Input.GetAxis("Mouse Y") * 20f);
|
||||
}
|
||||
|
||||
// Зум колесиком мыши
|
||||
float scroll = Input.GetAxis("Mouse ScrollWheel");
|
||||
if (scroll != 0)
|
||||
// Зум колесиком мыши
|
||||
float scroll = Input.GetAxis("Mouse ScrollWheel");
|
||||
if (scroll != 0)
|
||||
{
|
||||
_targetDistance -= scroll * zoomSpeed * 100f;
|
||||
_targetDistance = Mathf.Clamp(_targetDistance, minDistance, maxDistance);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// НОВЫЙ МЕТОД: Применение смещения относительно текущего поворота камеры
|
||||
private void ApplyPan(float deltaX, float deltaY)
|
||||
{
|
||||
// Высчитываем векторы "вправо" и "вперед" для камеры, игнорируя наклон (ось Y)
|
||||
Vector3 right = transform.right;
|
||||
right.y = 0;
|
||||
right.Normalize();
|
||||
|
||||
Vector3 forward = transform.forward;
|
||||
forward.y = 0;
|
||||
forward.Normalize();
|
||||
|
||||
// Умножаем движение пальца/мыши на направление камеры
|
||||
Vector3 move = (right * -deltaX) + (forward * -deltaY);
|
||||
|
||||
_targetPanOffset += new Vector2(move.x, move.z) * panSpeed;
|
||||
|
||||
// Ограничиваем максимальное смещение, чтобы не улететь за карту
|
||||
if (_targetPanOffset.magnitude > maxPanDistance)
|
||||
{
|
||||
_targetDistance -= scroll * zoomSpeed * 100f;
|
||||
_targetDistance = Mathf.Clamp(_targetDistance, minDistance, maxDistance);
|
||||
_targetPanOffset = _targetPanOffset.normalized * maxPanDistance;
|
||||
}
|
||||
}
|
||||
|
||||
// НОВЫЙ МЕТОД: Сброс смещения при отдалении
|
||||
private void CheckPanReset()
|
||||
{
|
||||
if (_targetDistance > zoomThresholdForPan)
|
||||
{
|
||||
// Если отдалились слишком сильно - обнуляем целевое смещение.
|
||||
// Благодаря SmoothDamp камера вернется в центр плавно!
|
||||
_targetPanOffset = Vector2.zero;
|
||||
}
|
||||
}
|
||||
|
||||
private void SmoothMovement()
|
||||
{
|
||||
// Функция SmoothDamp плавно "подтягивает" текущее значение к целевому.
|
||||
// Это создает эффект пружины и инерции.
|
||||
currentAngle = Mathf.SmoothDamp(currentAngle, _targetAngle, ref _angleVelocity, smoothTime);
|
||||
targetY = Mathf.SmoothDamp(targetY, _targetY, ref _yVelocity, smoothTime);
|
||||
distance = Mathf.SmoothDamp(distance, _targetDistance, ref _distanceVelocity, smoothTime);
|
||||
|
||||
// НОВОЕ: Плавно сглаживаем позицию смещения
|
||||
_currentPanOffset = Vector2.SmoothDamp(_currentPanOffset, _targetPanOffset, ref _panVelocity, smoothTime);
|
||||
}
|
||||
|
||||
private void UpdateCameraPosition()
|
||||
{
|
||||
// Цель на оси Y с ПЛАВНОЙ высотой (targetY)
|
||||
Vector3 targetPoint = new Vector3(0, targetY, 0);
|
||||
// НОВОЕ: Теперь цель вращения учитывает наше смещение по осям X и Z
|
||||
Vector3 targetPoint = new Vector3(_currentPanOffset.x, targetY, _currentPanOffset.y);
|
||||
|
||||
float radians = currentAngle * Mathf.Deg2Rad;
|
||||
|
||||
// Вычисляем ПЛАВНЫЕ координаты X и Z
|
||||
float x = targetPoint.x + distance * Mathf.Sin(radians);
|
||||
float z = targetPoint.z + distance * Mathf.Cos(radians);
|
||||
|
||||
|
||||
@@ -1,47 +1,118 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
using UnityEngine.EventSystems;
|
||||
|
||||
public class FurnitureBuilder : MonoBehaviour
|
||||
{
|
||||
public enum EditTool { Move, Rotate }
|
||||
|
||||
[Header("Настройки")]
|
||||
public GameObject currentPrefab;
|
||||
public LayerMask floorLayer;
|
||||
[SerializeField] private GameObject shopPanel;
|
||||
|
||||
[Header("Режим редактирования (UI)")]
|
||||
[SerializeField] private GameObject editPanel;
|
||||
public float rotationSpeed = 5f;
|
||||
|
||||
// Внутренние переменные состояния
|
||||
private GameObject _activeFurniture;
|
||||
private FurnitureObject _activeFurnitureScript; // <--- ИЗМЕНИЛИ ИМЯ ЗДЕСЬ
|
||||
private EditTool _currentTool = EditTool.Move;
|
||||
private Camera _cam;
|
||||
|
||||
private void Start()
|
||||
{
|
||||
_cam = Camera.main;
|
||||
currentPrefab = null;
|
||||
editPanel.SetActive(false);
|
||||
}
|
||||
|
||||
void Update()
|
||||
{
|
||||
if (Input.GetMouseButtonDown(0)&&!shopPanel.activeSelf)
|
||||
if (_activeFurniture != null)
|
||||
{
|
||||
if (currentPrefab != null)
|
||||
HandleEditing();
|
||||
}
|
||||
else if (currentPrefab != null)
|
||||
{
|
||||
if (Input.GetMouseButtonDown(0) && !shopPanel.activeSelf && !IsPointerOverUI())
|
||||
{
|
||||
TryPlaceFurniture();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void TryPlaceFurniture()
|
||||
private void HandleEditing()
|
||||
{
|
||||
Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
|
||||
RaycastHit hit;
|
||||
|
||||
if (Physics.Raycast(ray, out hit, 100f, floorLayer))
|
||||
Vector3 screenPos = _cam.WorldToScreenPoint(_activeFurniture.transform.position);
|
||||
editPanel.transform.position = screenPos + new Vector3(0, 100, 0);
|
||||
|
||||
if (Input.GetMouseButton(0) && !IsPointerOverUI())
|
||||
{
|
||||
Instantiate(currentPrefab, hit.point, Quaternion.identity);
|
||||
currentPrefab = null;
|
||||
if (_currentTool == EditTool.Move)
|
||||
{
|
||||
Ray ray = _cam.ScreenPointToRay(Input.mousePosition);
|
||||
if (Physics.Raycast(ray, out RaycastHit hit, 100f, floorLayer))
|
||||
{
|
||||
_activeFurniture.transform.position = hit.point;
|
||||
}
|
||||
}
|
||||
else if (_currentTool == EditTool.Rotate)
|
||||
{
|
||||
float rotX = Input.GetAxis("Mouse X");
|
||||
_activeFurniture.transform.Rotate(Vector3.up, -rotX * rotationSpeed);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void TryPlaceFurniture()
|
||||
{
|
||||
Ray ray = _cam.ScreenPointToRay(Input.mousePosition);
|
||||
if (Physics.Raycast(ray, out RaycastHit hit, 100f, floorLayer))
|
||||
{
|
||||
_activeFurniture = Instantiate(currentPrefab, hit.point, Quaternion.identity);
|
||||
|
||||
// <--- ИЗМЕНИЛИ ИМЯ ЗДЕСЬ
|
||||
_activeFurnitureScript = _activeFurniture.GetComponent<FurnitureObject>();
|
||||
|
||||
_activeFurnitureScript.SetEditMode(true);
|
||||
editPanel.SetActive(true);
|
||||
_currentTool = EditTool.Move;
|
||||
currentPrefab = null;
|
||||
}
|
||||
}
|
||||
|
||||
public void SelectMoveTool() { _currentTool = EditTool.Move; }
|
||||
public void SelectRotateTool() { _currentTool = EditTool.Rotate; }
|
||||
|
||||
public void ConfirmPlacement()
|
||||
{
|
||||
if (_activeFurnitureScript != null && _activeFurnitureScript.IsPlacementValid)
|
||||
{
|
||||
_activeFurnitureScript.SetEditMode(false);
|
||||
_activeFurniture = null;
|
||||
_activeFurnitureScript = null;
|
||||
editPanel.SetActive(false);
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("Нельзя поставить сюда! Мебель пересекается с препятствием.");
|
||||
}
|
||||
}
|
||||
|
||||
public void SelectFurnitureAndCloseShop(GameObject prefabToSelect)
|
||||
{
|
||||
currentPrefab = prefabToSelect;
|
||||
shopPanel.SetActive(false);
|
||||
}
|
||||
public void SelectFurniture(GameObject prefabToSelect)
|
||||
|
||||
private bool IsPointerOverUI()
|
||||
{
|
||||
currentPrefab = prefabToSelect;
|
||||
if (EventSystem.current != null)
|
||||
{
|
||||
if (EventSystem.current.IsPointerOverGameObject()) return true;
|
||||
if (Input.touchCount > 0 && EventSystem.current.IsPointerOverGameObject(Input.GetTouch(0).fingerId)) return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class FurnitureObject : MonoBehaviour
|
||||
{
|
||||
[Header("Настройки")]
|
||||
public LayerMask obstacleLayers; // Слои объектов, с которыми нельзя пересекаться
|
||||
|
||||
private List<Material> _materials = new List<Material>();
|
||||
private List<Color> _originalColors = new List<Color>();
|
||||
private int _obstaclesCount = 0;
|
||||
|
||||
public bool IsPlacementValid => _obstaclesCount == 0;
|
||||
|
||||
void Awake()
|
||||
{
|
||||
Renderer[] renderers = GetComponentsInChildren<Renderer>();
|
||||
foreach (var r in renderers)
|
||||
{
|
||||
foreach (var mat in r.materials)
|
||||
{
|
||||
_materials.Add(mat);
|
||||
_originalColors.Add(mat.color);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void SetEditMode(bool active)
|
||||
{
|
||||
if (!active)
|
||||
{
|
||||
for (int i = 0; i < _materials.Count; i++)
|
||||
{
|
||||
_materials[i].color = _originalColors[i];
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
UpdateColor();
|
||||
}
|
||||
|
||||
private void OnTriggerEnter(Collider other)
|
||||
{
|
||||
if (((1 << other.gameObject.layer) & obstacleLayers) != 0)
|
||||
{
|
||||
_obstaclesCount++;
|
||||
UpdateColor();
|
||||
}
|
||||
}
|
||||
|
||||
private void OnTriggerExit(Collider other)
|
||||
{
|
||||
if (((1 << other.gameObject.layer) & obstacleLayers) != 0)
|
||||
{
|
||||
_obstaclesCount--;
|
||||
UpdateColor();
|
||||
}
|
||||
}
|
||||
|
||||
private void UpdateColor()
|
||||
{
|
||||
Color targetColor = IsPlacementValid ? new Color(0, 1, 0, 0.6f) : new Color(1, 0, 0, 0.6f);
|
||||
|
||||
foreach (var mat in _materials)
|
||||
{
|
||||
mat.color = targetColor;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7196b5f65c7bcd143b0f035424936bef
|
||||
@@ -20,23 +20,54 @@ public class RoomVisibilityController : MonoBehaviour
|
||||
[Header("Столбики")]
|
||||
public PillarData[] pillars;
|
||||
|
||||
[Header("Настройки")]
|
||||
[Header("Настройки видимости")]
|
||||
[Range(-0.5f, 0.5f)]
|
||||
public float hideThreshold = 0.1f;
|
||||
|
||||
[Header("Настройки плавности (НОВОЕ)")]
|
||||
public float fadeSpeed = 3f; // Скорость исчезновения (чем больше, тем быстрее)
|
||||
|
||||
private Camera _mainCamera;
|
||||
private Dictionary<GameObject, bool> _wallHiddenStates = new Dictionary<GameObject, bool>();
|
||||
|
||||
// Новые словари для контроля плавного исчезновения
|
||||
private Dictionary<GameObject, float> _targetAlphas = new Dictionary<GameObject, float>();
|
||||
private Dictionary<GameObject, List<Material>> _objectMaterials = new Dictionary<GameObject, List<Material>>();
|
||||
private Dictionary<GameObject, Renderer[]> _objectRenderers = new Dictionary<GameObject, Renderer[]>();
|
||||
|
||||
void Start()
|
||||
{
|
||||
_mainCamera = Camera.main;
|
||||
|
||||
// При старте игры находим и запоминаем все материалы стен и столбиков
|
||||
foreach (var wall in walls) { InitializeFadingData(wall); }
|
||||
foreach (var pillar in pillars) { InitializeFadingData(pillar.pillarObject); }
|
||||
}
|
||||
|
||||
// Метод для кэширования материалов (чтобы не искать их каждый кадр)
|
||||
private void InitializeFadingData(GameObject obj)
|
||||
{
|
||||
if (obj == null || _objectMaterials.ContainsKey(obj)) return;
|
||||
|
||||
Renderer[] renderers = obj.GetComponentsInChildren<Renderer>();
|
||||
List<Material> mats = new List<Material>();
|
||||
|
||||
foreach (Renderer r in renderers)
|
||||
{
|
||||
// Обращение к .materials создает уникальную копию материала для объекта.
|
||||
// Это нужно, чтобы стены исчезали по отдельности, а не все разом.
|
||||
mats.AddRange(r.materials);
|
||||
}
|
||||
|
||||
_objectRenderers[obj] = renderers;
|
||||
_objectMaterials[obj] = mats;
|
||||
_targetAlphas[obj] = 1f; // 1f - это 100% непрозрачности (видимый)
|
||||
}
|
||||
|
||||
void LateUpdate()
|
||||
{
|
||||
if (_mainCamera == null || roomCenter == null) return;
|
||||
|
||||
// Вектор от центра к камере
|
||||
Vector3 dirToCamera = _mainCamera.transform.position - roomCenter.position;
|
||||
dirToCamera.y = 0; // Игнорируем высоту
|
||||
|
||||
@@ -45,24 +76,17 @@ public class RoomVisibilityController : MonoBehaviour
|
||||
{
|
||||
if (wall == null) continue;
|
||||
|
||||
// МАГИЯ ЗДЕСЬ: берем реальный геометрический центр 3D-модели!
|
||||
Vector3 targetPos = GetRealCenter(wall);
|
||||
|
||||
// Вектор от центра комнаты к реальному центру стены
|
||||
Vector3 dirToWall = targetPos - roomCenter.position;
|
||||
dirToWall.y = 0;
|
||||
|
||||
// Вычисляем, перекрывает ли стена камеру
|
||||
bool isHidden = Vector3.Dot(dirToCamera.normalized, dirToWall.normalized) > hideThreshold;
|
||||
|
||||
// Рисуем линии в сцене (зеленая - видима, красная - спрятана)
|
||||
Debug.DrawLine(roomCenter.position, targetPos, isHidden ? Color.red : Color.green);
|
||||
|
||||
// Включаем/выключаем графику
|
||||
SetVisibility(wall, !isHidden);
|
||||
|
||||
// Запоминаем для столбиков
|
||||
// Вместо мгновенного выключения, задаем ЦЕЛЕВУЮ прозрачность (0 - скрыть, 1 - показать)
|
||||
_targetAlphas[wall] = isHidden ? 0f : 1f;
|
||||
_wallHiddenStates[wall] = isHidden;
|
||||
|
||||
Debug.DrawLine(roomCenter.position, targetPos, isHidden ? Color.red : Color.green);
|
||||
}
|
||||
|
||||
// 2. СТОЛБИКИ
|
||||
@@ -74,34 +98,68 @@ public class RoomVisibilityController : MonoBehaviour
|
||||
bool isWall1Hidden = _wallHiddenStates.ContainsKey(pillar.connectedWall1) && _wallHiddenStates[pillar.connectedWall1];
|
||||
bool isWall2Hidden = _wallHiddenStates.ContainsKey(pillar.connectedWall2) && _wallHiddenStates[pillar.connectedWall2];
|
||||
|
||||
// Прячем столбик только если ОБЕ стены спрятаны
|
||||
bool shouldHidePillar = isWall1Hidden && isWall2Hidden;
|
||||
SetVisibility(pillar.pillarObject, !shouldHidePillar);
|
||||
|
||||
// Задаем целевую прозрачность для столбика
|
||||
_targetAlphas[pillar.pillarObject] = shouldHidePillar ? 0f : 1f;
|
||||
}
|
||||
|
||||
// 3. Вызываем функцию плавного изменения прозрачности
|
||||
UpdateFading();
|
||||
}
|
||||
|
||||
// Метод, который плавно меняет Альфа-канал каждый кадр
|
||||
private void UpdateFading()
|
||||
{
|
||||
foreach (var kvp in _objectMaterials)
|
||||
{
|
||||
GameObject obj = kvp.Key;
|
||||
float targetAlpha = _targetAlphas[obj];
|
||||
List<Material> mats = kvp.Value;
|
||||
|
||||
if (mats.Count == 0) continue;
|
||||
|
||||
// Берем текущую прозрачность из первого материала
|
||||
float currentAlpha = mats[0].color.a;
|
||||
|
||||
// Если текущая прозрачность не равна целевой (надо менять)
|
||||
if (!Mathf.Approximately(currentAlpha, targetAlpha))
|
||||
{
|
||||
// Плавно меняем значение от текущего к целевому
|
||||
float newAlpha = Mathf.MoveTowards(currentAlpha, targetAlpha, fadeSpeed * Time.deltaTime);
|
||||
|
||||
// Применяем новую прозрачность ко всем материалам объекта
|
||||
foreach (Material mat in mats)
|
||||
{
|
||||
Color c = mat.color;
|
||||
c.a = newAlpha;
|
||||
mat.color = c;
|
||||
}
|
||||
|
||||
// ОПТИМИЗАЦИЯ:
|
||||
// Включаем Renderer, если прозрачность больше 0.
|
||||
// Выключаем Renderer полностью, только когда он на 100% прозрачен.
|
||||
Renderer[] renderers = _objectRenderers[obj];
|
||||
bool shouldRender = newAlpha > 0f;
|
||||
|
||||
foreach (Renderer r in renderers)
|
||||
{
|
||||
if (r.enabled != shouldRender)
|
||||
{
|
||||
r.enabled = shouldRender;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Метод, который находит геометрический центр (игнорируя кривые координаты)
|
||||
private Vector3 GetRealCenter(GameObject obj)
|
||||
{
|
||||
Renderer r = obj.GetComponentInChildren<Renderer>();
|
||||
if (r != null)
|
||||
{
|
||||
// bounds.center - это центр самой "коробки" 3D модели
|
||||
return r.bounds.center;
|
||||
}
|
||||
return obj.transform.position; // Запасной вариант
|
||||
}
|
||||
|
||||
// Метод, который выключает саму картинку (сработает даже если стена вложена в пустышку)
|
||||
private void SetVisibility(GameObject obj, bool isVisible)
|
||||
{
|
||||
Renderer[] renderers = obj.GetComponentsInChildren<Renderer>();
|
||||
foreach (Renderer r in renderers)
|
||||
{
|
||||
if (r.enabled != isVisible)
|
||||
{
|
||||
r.enabled = isVisible;
|
||||
}
|
||||
}
|
||||
return obj.transform.position;
|
||||
}
|
||||
}
|
||||
@@ -11,7 +11,7 @@ TagManager:
|
||||
- Floor
|
||||
- Water
|
||||
- UI
|
||||
-
|
||||
- Furniture
|
||||
-
|
||||
-
|
||||
-
|
||||
|
||||
Reference in new issue
Block a user