Compare commits
6 Commits
3593a9f0e8
...
master
Author | SHA1 | Date | |
---|---|---|---|
9daa56a457 | |||
0a1aa83425 | |||
bb2c5aa436 | |||
ec905d2a27 | |||
2b4a7af1e1 | |||
5dd9760a20 |
149
Assets/Prefab/Gameplay/NumberSlot.prefab
Normal file
149
Assets/Prefab/Gameplay/NumberSlot.prefab
Normal file
@@ -0,0 +1,149 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1 &1079693037897703353
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 3692176305921728328}
|
||||||
|
- component: {fileID: 1875558020952416763}
|
||||||
|
- component: {fileID: 6958443043046651409}
|
||||||
|
- component: {fileID: 3036000835194628394}
|
||||||
|
- component: {fileID: 9057593411103083886}
|
||||||
|
- component: {fileID: 7384438008133576482}
|
||||||
|
- component: {fileID: 2187320556207737093}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: NumberSlot
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &3692176305921728328
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1079693037897703353}
|
||||||
|
serializedVersion: 2
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 10, y: 0.8, z: -5}
|
||||||
|
m_LocalScale: {x: 1.5, y: 1.5, z: 0.15}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!33 &1875558020952416763
|
||||||
|
MeshFilter:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1079693037897703353}
|
||||||
|
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
--- !u!23 &6958443043046651409
|
||||||
|
MeshRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1079693037897703353}
|
||||||
|
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_RenderingLayerMask: 1
|
||||||
|
m_RendererPriority: 0
|
||||||
|
m_Materials:
|
||||||
|
- {fileID: 2100000, guid: 31321ba15b8f8eb4c954353edc038b1d, 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_SortingLayerID: 0
|
||||||
|
m_SortingLayer: 0
|
||||||
|
m_SortingOrder: 0
|
||||||
|
m_AdditionalVertexStreams: {fileID: 0}
|
||||||
|
--- !u!65 &3036000835194628394
|
||||||
|
BoxCollider:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1079693037897703353}
|
||||||
|
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}
|
||||||
|
--- !u!114 &9057593411103083886
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1079693037897703353}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 7986c88b8e1d4944832af56e23188597, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
--- !u!114 &7384438008133576482
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1079693037897703353}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 2791e039b8344f45ad6dc86f5188d82d, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
isActive: 1
|
||||||
|
--- !u!114 &2187320556207737093
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1079693037897703353}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 301178d89b6b43e0844e3d39aa579442, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
currentNumber: 0
|
||||||
|
correctNumber: 1
|
7
Assets/Prefab/Gameplay/NumberSlot.prefab.meta
Normal file
7
Assets/Prefab/Gameplay/NumberSlot.prefab.meta
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 17ad2833fef1bc044bcc25a227730d74
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@@ -328,9 +328,9 @@ MonoBehaviour:
|
|||||||
m_Script: {fileID: 11500000, guid: 5981311fef324f939be05186f7936173, type: 3}
|
m_Script: {fileID: 11500000, guid: 5981311fef324f939be05186f7936173, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
|
IsEnableConnecting: 1
|
||||||
raycaster: {fileID: 8217262775185484522}
|
raycaster: {fileID: 8217262775185484522}
|
||||||
linePrefab: {fileID: 2140853775088731430, guid: 5ded9ec889d81364ba1dd360c848f147,
|
maxConnectDistance: 10.5
|
||||||
type: 3}
|
|
||||||
--- !u!1 &3610935294554348573
|
--- !u!1 &3610935294554348573
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
@@ -11,11 +11,10 @@ GameObject:
|
|||||||
- component: {fileID: 8123550679489282954}
|
- component: {fileID: 8123550679489282954}
|
||||||
- component: {fileID: 2493044360019674672}
|
- component: {fileID: 2493044360019674672}
|
||||||
- component: {fileID: 1538197780757662793}
|
- component: {fileID: 1538197780757662793}
|
||||||
- component: {fileID: 3944240041841304458}
|
|
||||||
- component: {fileID: 8785614081330407045}
|
- component: {fileID: 8785614081330407045}
|
||||||
- component: {fileID: 220912239936987690}
|
- component: {fileID: 220912239936987690}
|
||||||
- component: {fileID: 7681678543859060545}
|
|
||||||
- component: {fileID: -7803032184951374842}
|
- component: {fileID: -7803032184951374842}
|
||||||
|
- component: {fileID: 4542395966412092557}
|
||||||
m_Layer: 0
|
m_Layer: 0
|
||||||
m_Name: PressurePlate
|
m_Name: PressurePlate
|
||||||
m_TagString: Untagged
|
m_TagString: Untagged
|
||||||
@@ -88,33 +87,6 @@ MeshRenderer:
|
|||||||
m_SortingLayer: 0
|
m_SortingLayer: 0
|
||||||
m_SortingOrder: 0
|
m_SortingOrder: 0
|
||||||
m_AdditionalVertexStreams: {fileID: 0}
|
m_AdditionalVertexStreams: {fileID: 0}
|
||||||
--- !u!54 &3944240041841304458
|
|
||||||
Rigidbody:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 2191333364839819432}
|
|
||||||
serializedVersion: 4
|
|
||||||
m_Mass: 1
|
|
||||||
m_Drag: 0
|
|
||||||
m_AngularDrag: 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: 0
|
|
||||||
m_Interpolate: 0
|
|
||||||
m_Constraints: 0
|
|
||||||
m_CollisionDetection: 0
|
|
||||||
--- !u!65 &8785614081330407045
|
--- !u!65 &8785614081330407045
|
||||||
BoxCollider:
|
BoxCollider:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -149,19 +121,6 @@ MonoBehaviour:
|
|||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
isActive: 1
|
isActive: 1
|
||||||
--- !u!114 &7681678543859060545
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 2191333364839819432}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: 06015834a0da4561ba47d104b73171a4, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
isActive: 1
|
|
||||||
--- !u!114 &-7803032184951374842
|
--- !u!114 &-7803032184951374842
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -180,3 +139,15 @@ MonoBehaviour:
|
|||||||
m_Bits: 4294967295
|
m_Bits: 4294967295
|
||||||
plateSize: {x: 1.2, y: 0.4, z: 1.2}
|
plateSize: {x: 1.2, y: 0.4, z: 1.2}
|
||||||
plateOffset: {x: 0, y: 0.5, z: 0}
|
plateOffset: {x: 0, y: 0.5, z: 0}
|
||||||
|
--- !u!114 &4542395966412092557
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 2191333364839819432}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 7986c88b8e1d4944832af56e23188597, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
@@ -192,6 +192,18 @@ PrefabInstance:
|
|||||||
m_AddedGameObjects: []
|
m_AddedGameObjects: []
|
||||||
m_AddedComponents: []
|
m_AddedComponents: []
|
||||||
m_SourcePrefab: {fileID: 100100000, guid: 2a2113dbf189fbd44bca90f4df91f338, type: 3}
|
m_SourcePrefab: {fileID: 100100000, guid: 2a2113dbf189fbd44bca90f4df91f338, type: 3}
|
||||||
|
--- !u!114 &183959152 stripped
|
||||||
|
MonoBehaviour:
|
||||||
|
m_CorrespondingSourceObject: {fileID: 605469399670797709, guid: b3e24e2df98d14e4ebc08cc68c071afa,
|
||||||
|
type: 3}
|
||||||
|
m_PrefabInstance: {fileID: 2088331975902746738}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 0}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 3bdc5380046d4cacb0dd579877f320eb, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
--- !u!1 &410087039
|
--- !u!1 &410087039
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -310,6 +322,74 @@ MonoBehaviour:
|
|||||||
m_LightCookieSize: {x: 1, y: 1}
|
m_LightCookieSize: {x: 1, y: 1}
|
||||||
m_LightCookieOffset: {x: 0, y: 0}
|
m_LightCookieOffset: {x: 0, y: 0}
|
||||||
m_SoftShadowQuality: 1
|
m_SoftShadowQuality: 1
|
||||||
|
--- !u!1001 &473911345
|
||||||
|
PrefabInstance:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Modification:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TransformParent: {fileID: 0}
|
||||||
|
m_Modifications:
|
||||||
|
- target: {fileID: 502199709937918930, guid: ddd89e93db279184daa80d86bd4e770f,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 502199709937918930, guid: ddd89e93db279184daa80d86bd4e770f,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.y
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 502199709937918930, guid: ddd89e93db279184daa80d86bd4e770f,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.z
|
||||||
|
value: 10
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 502199709937918930, guid: ddd89e93db279184daa80d86bd4e770f,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.w
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 502199709937918930, guid: ddd89e93db279184daa80d86bd4e770f,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 502199709937918930, guid: ddd89e93db279184daa80d86bd4e770f,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 502199709937918930, guid: ddd89e93db279184daa80d86bd4e770f,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 502199709937918930, guid: ddd89e93db279184daa80d86bd4e770f,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 502199709937918930, guid: ddd89e93db279184daa80d86bd4e770f,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 502199709937918930, guid: ddd89e93db279184daa80d86bd4e770f,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 2052340463965227198, guid: ddd89e93db279184daa80d86bd4e770f,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_Name
|
||||||
|
value: Button (2)
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
m_RemovedComponents: []
|
||||||
|
m_RemovedGameObjects: []
|
||||||
|
m_AddedGameObjects: []
|
||||||
|
m_AddedComponents: []
|
||||||
|
m_SourcePrefab: {fileID: 100100000, guid: ddd89e93db279184daa80d86bd4e770f, type: 3}
|
||||||
--- !u!1001 &769057572
|
--- !u!1001 &769057572
|
||||||
PrefabInstance:
|
PrefabInstance:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -378,6 +458,74 @@ PrefabInstance:
|
|||||||
m_AddedGameObjects: []
|
m_AddedGameObjects: []
|
||||||
m_AddedComponents: []
|
m_AddedComponents: []
|
||||||
m_SourcePrefab: {fileID: 100100000, guid: 9e2e93bf07726014bac5a458c32e697f, type: 3}
|
m_SourcePrefab: {fileID: 100100000, guid: 9e2e93bf07726014bac5a458c32e697f, type: 3}
|
||||||
|
--- !u!1001 &865274353
|
||||||
|
PrefabInstance:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Modification:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TransformParent: {fileID: 0}
|
||||||
|
m_Modifications:
|
||||||
|
- target: {fileID: 502199709937918930, guid: ddd89e93db279184daa80d86bd4e770f,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.x
|
||||||
|
value: 10
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 502199709937918930, guid: ddd89e93db279184daa80d86bd4e770f,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.y
|
||||||
|
value: 1.6
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 502199709937918930, guid: ddd89e93db279184daa80d86bd4e770f,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.z
|
||||||
|
value: 10
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 502199709937918930, guid: ddd89e93db279184daa80d86bd4e770f,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.w
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 502199709937918930, guid: ddd89e93db279184daa80d86bd4e770f,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 502199709937918930, guid: ddd89e93db279184daa80d86bd4e770f,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 502199709937918930, guid: ddd89e93db279184daa80d86bd4e770f,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 502199709937918930, guid: ddd89e93db279184daa80d86bd4e770f,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 502199709937918930, guid: ddd89e93db279184daa80d86bd4e770f,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 502199709937918930, guid: ddd89e93db279184daa80d86bd4e770f,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 2052340463965227198, guid: ddd89e93db279184daa80d86bd4e770f,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_Name
|
||||||
|
value: Button (1)
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
m_RemovedComponents: []
|
||||||
|
m_RemovedGameObjects: []
|
||||||
|
m_AddedGameObjects: []
|
||||||
|
m_AddedComponents: []
|
||||||
|
m_SourcePrefab: {fileID: 100100000, guid: ddd89e93db279184daa80d86bd4e770f, type: 3}
|
||||||
--- !u!1001 &993640446
|
--- !u!1001 &993640446
|
||||||
PrefabInstance:
|
PrefabInstance:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -446,6 +594,86 @@ PrefabInstance:
|
|||||||
m_AddedGameObjects: []
|
m_AddedGameObjects: []
|
||||||
m_AddedComponents: []
|
m_AddedComponents: []
|
||||||
m_SourcePrefab: {fileID: 100100000, guid: b3e24e2df98d14e4ebc08cc68c071afa, type: 3}
|
m_SourcePrefab: {fileID: 100100000, guid: b3e24e2df98d14e4ebc08cc68c071afa, type: 3}
|
||||||
|
--- !u!1001 &1240498723
|
||||||
|
PrefabInstance:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Modification:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TransformParent: {fileID: 0}
|
||||||
|
m_Modifications:
|
||||||
|
- target: {fileID: 502199709937918930, guid: ddd89e93db279184daa80d86bd4e770f,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.x
|
||||||
|
value: -5
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 502199709937918930, guid: ddd89e93db279184daa80d86bd4e770f,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.y
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 502199709937918930, guid: ddd89e93db279184daa80d86bd4e770f,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.z
|
||||||
|
value: -5
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 502199709937918930, guid: ddd89e93db279184daa80d86bd4e770f,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.w
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 502199709937918930, guid: ddd89e93db279184daa80d86bd4e770f,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 502199709937918930, guid: ddd89e93db279184daa80d86bd4e770f,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 502199709937918930, guid: ddd89e93db279184daa80d86bd4e770f,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 502199709937918930, guid: ddd89e93db279184daa80d86bd4e770f,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 502199709937918930, guid: ddd89e93db279184daa80d86bd4e770f,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 502199709937918930, guid: ddd89e93db279184daa80d86bd4e770f,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 2052340463965227198, guid: ddd89e93db279184daa80d86bd4e770f,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_Name
|
||||||
|
value: Button (3)
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
m_RemovedComponents: []
|
||||||
|
m_RemovedGameObjects: []
|
||||||
|
m_AddedGameObjects: []
|
||||||
|
m_AddedComponents: []
|
||||||
|
m_SourcePrefab: {fileID: 100100000, guid: ddd89e93db279184daa80d86bd4e770f, type: 3}
|
||||||
|
--- !u!114 &1240498724 stripped
|
||||||
|
MonoBehaviour:
|
||||||
|
m_CorrespondingSourceObject: {fileID: 4434834246038522293, guid: ddd89e93db279184daa80d86bd4e770f,
|
||||||
|
type: 3}
|
||||||
|
m_PrefabInstance: {fileID: 1240498723}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 0}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 7f5359facd804a0cb94d416c9c54a167, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
--- !u!1 &1274249800
|
--- !u!1 &1274249800
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -688,6 +916,74 @@ PrefabInstance:
|
|||||||
m_AddedGameObjects: []
|
m_AddedGameObjects: []
|
||||||
m_AddedComponents: []
|
m_AddedComponents: []
|
||||||
m_SourcePrefab: {fileID: 100100000, guid: 781c629235eee4f4eb34f1e763aa7f67, type: 3}
|
m_SourcePrefab: {fileID: 100100000, guid: 781c629235eee4f4eb34f1e763aa7f67, type: 3}
|
||||||
|
--- !u!1001 &1751629950
|
||||||
|
PrefabInstance:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Modification:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TransformParent: {fileID: 0}
|
||||||
|
m_Modifications:
|
||||||
|
- target: {fileID: 77361986880837193, guid: b3e24e2df98d14e4ebc08cc68c071afa,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.x
|
||||||
|
value: -5
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 77361986880837193, guid: b3e24e2df98d14e4ebc08cc68c071afa,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.y
|
||||||
|
value: 1.5
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 77361986880837193, guid: b3e24e2df98d14e4ebc08cc68c071afa,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.z
|
||||||
|
value: 10
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 77361986880837193, guid: b3e24e2df98d14e4ebc08cc68c071afa,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.w
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 77361986880837193, guid: b3e24e2df98d14e4ebc08cc68c071afa,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 77361986880837193, guid: b3e24e2df98d14e4ebc08cc68c071afa,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 77361986880837193, guid: b3e24e2df98d14e4ebc08cc68c071afa,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 77361986880837193, guid: b3e24e2df98d14e4ebc08cc68c071afa,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 77361986880837193, guid: b3e24e2df98d14e4ebc08cc68c071afa,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 77361986880837193, guid: b3e24e2df98d14e4ebc08cc68c071afa,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 2729643726423589850, guid: b3e24e2df98d14e4ebc08cc68c071afa,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_Name
|
||||||
|
value: Door (3)
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
m_RemovedComponents: []
|
||||||
|
m_RemovedGameObjects: []
|
||||||
|
m_AddedGameObjects: []
|
||||||
|
m_AddedComponents: []
|
||||||
|
m_SourcePrefab: {fileID: 100100000, guid: b3e24e2df98d14e4ebc08cc68c071afa, type: 3}
|
||||||
--- !u!1001 &1948851238
|
--- !u!1001 &1948851238
|
||||||
PrefabInstance:
|
PrefabInstance:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -787,6 +1083,74 @@ Transform:
|
|||||||
m_Children: []
|
m_Children: []
|
||||||
m_Father: {fileID: 0}
|
m_Father: {fileID: 0}
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!1001 &2032802597
|
||||||
|
PrefabInstance:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Modification:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TransformParent: {fileID: 0}
|
||||||
|
m_Modifications:
|
||||||
|
- target: {fileID: 77361986880837193, guid: b3e24e2df98d14e4ebc08cc68c071afa,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.x
|
||||||
|
value: 15
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 77361986880837193, guid: b3e24e2df98d14e4ebc08cc68c071afa,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.y
|
||||||
|
value: 1.5
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 77361986880837193, guid: b3e24e2df98d14e4ebc08cc68c071afa,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 77361986880837193, guid: b3e24e2df98d14e4ebc08cc68c071afa,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.w
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 77361986880837193, guid: b3e24e2df98d14e4ebc08cc68c071afa,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 77361986880837193, guid: b3e24e2df98d14e4ebc08cc68c071afa,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 77361986880837193, guid: b3e24e2df98d14e4ebc08cc68c071afa,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 77361986880837193, guid: b3e24e2df98d14e4ebc08cc68c071afa,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 77361986880837193, guid: b3e24e2df98d14e4ebc08cc68c071afa,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 77361986880837193, guid: b3e24e2df98d14e4ebc08cc68c071afa,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 2729643726423589850, guid: b3e24e2df98d14e4ebc08cc68c071afa,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_Name
|
||||||
|
value: Door (4)
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
m_RemovedComponents: []
|
||||||
|
m_RemovedGameObjects: []
|
||||||
|
m_AddedGameObjects: []
|
||||||
|
m_AddedComponents: []
|
||||||
|
m_SourcePrefab: {fileID: 100100000, guid: b3e24e2df98d14e4ebc08cc68c071afa, type: 3}
|
||||||
--- !u!1001 &366996911271636373
|
--- !u!1001 &366996911271636373
|
||||||
PrefabInstance:
|
PrefabInstance:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -991,6 +1355,74 @@ PrefabInstance:
|
|||||||
m_AddedGameObjects: []
|
m_AddedGameObjects: []
|
||||||
m_AddedComponents: []
|
m_AddedComponents: []
|
||||||
m_SourcePrefab: {fileID: 100100000, guid: b3e24e2df98d14e4ebc08cc68c071afa, type: 3}
|
m_SourcePrefab: {fileID: 100100000, guid: b3e24e2df98d14e4ebc08cc68c071afa, type: 3}
|
||||||
|
--- !u!1001 &3372472533242412945
|
||||||
|
PrefabInstance:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Modification:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TransformParent: {fileID: 0}
|
||||||
|
m_Modifications:
|
||||||
|
- target: {fileID: 1079693037897703353, guid: 17ad2833fef1bc044bcc25a227730d74,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_Name
|
||||||
|
value: NumberSlot
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 3692176305921728328, guid: 17ad2833fef1bc044bcc25a227730d74,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.x
|
||||||
|
value: 15
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 3692176305921728328, guid: 17ad2833fef1bc044bcc25a227730d74,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.y
|
||||||
|
value: 1.5
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 3692176305921728328, guid: 17ad2833fef1bc044bcc25a227730d74,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.z
|
||||||
|
value: -5
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 3692176305921728328, guid: 17ad2833fef1bc044bcc25a227730d74,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.w
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 3692176305921728328, guid: 17ad2833fef1bc044bcc25a227730d74,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 3692176305921728328, guid: 17ad2833fef1bc044bcc25a227730d74,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 3692176305921728328, guid: 17ad2833fef1bc044bcc25a227730d74,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 3692176305921728328, guid: 17ad2833fef1bc044bcc25a227730d74,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 3692176305921728328, guid: 17ad2833fef1bc044bcc25a227730d74,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 3692176305921728328, guid: 17ad2833fef1bc044bcc25a227730d74,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
m_RemovedComponents: []
|
||||||
|
m_RemovedGameObjects: []
|
||||||
|
m_AddedGameObjects: []
|
||||||
|
m_AddedComponents: []
|
||||||
|
m_SourcePrefab: {fileID: 100100000, guid: 17ad2833fef1bc044bcc25a227730d74, type: 3}
|
||||||
--- !u!1001 &6191742170513974480
|
--- !u!1001 &6191742170513974480
|
||||||
PrefabInstance:
|
PrefabInstance:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -1002,17 +1434,17 @@ PrefabInstance:
|
|||||||
- target: {fileID: 502199709937918930, guid: ddd89e93db279184daa80d86bd4e770f,
|
- target: {fileID: 502199709937918930, guid: ddd89e93db279184daa80d86bd4e770f,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_LocalPosition.x
|
propertyPath: m_LocalPosition.x
|
||||||
value: -5
|
value: 5
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 502199709937918930, guid: ddd89e93db279184daa80d86bd4e770f,
|
- target: {fileID: 502199709937918930, guid: ddd89e93db279184daa80d86bd4e770f,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_LocalPosition.y
|
propertyPath: m_LocalPosition.y
|
||||||
value: 1
|
value: 1.3
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 502199709937918930, guid: ddd89e93db279184daa80d86bd4e770f,
|
- target: {fileID: 502199709937918930, guid: ddd89e93db279184daa80d86bd4e770f,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_LocalPosition.z
|
propertyPath: m_LocalPosition.z
|
||||||
value: -5
|
value: 10
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 502199709937918930, guid: ddd89e93db279184daa80d86bd4e770f,
|
- target: {fileID: 502199709937918930, guid: ddd89e93db279184daa80d86bd4e770f,
|
||||||
type: 3}
|
type: 3}
|
||||||
@@ -1208,6 +1640,21 @@ PrefabInstance:
|
|||||||
propertyPath: m_Name
|
propertyPath: m_Name
|
||||||
value: ConnectionManager
|
value: ConnectionManager
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 6919868315282518728, guid: e6007da0e1121fd4ab3b932c054f6256,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: preConnectionLines.Array.size
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 6919868315282518728, guid: e6007da0e1121fd4ab3b932c054f6256,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: preConnectionLines.Array.data[0].source
|
||||||
|
value:
|
||||||
|
objectReference: {fileID: 1240498724}
|
||||||
|
- target: {fileID: 6919868315282518728, guid: e6007da0e1121fd4ab3b932c054f6256,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: preConnectionLines.Array.data[0].target
|
||||||
|
value:
|
||||||
|
objectReference: {fileID: 183959152}
|
||||||
- target: {fileID: 8209060139561151121, guid: e6007da0e1121fd4ab3b932c054f6256,
|
- target: {fileID: 8209060139561151121, guid: e6007da0e1121fd4ab3b932c054f6256,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_LocalPosition.x
|
propertyPath: m_LocalPosition.x
|
||||||
@@ -1277,9 +1724,15 @@ SceneRoots:
|
|||||||
- {fileID: 7020889523296792185}
|
- {fileID: 7020889523296792185}
|
||||||
- {fileID: 2021089518}
|
- {fileID: 2021089518}
|
||||||
- {fileID: 2088331975902746738}
|
- {fileID: 2088331975902746738}
|
||||||
|
- {fileID: 1751629950}
|
||||||
- {fileID: 1948851238}
|
- {fileID: 1948851238}
|
||||||
- {fileID: 993640446}
|
- {fileID: 993640446}
|
||||||
|
- {fileID: 2032802597}
|
||||||
- {fileID: 1781028406820323425}
|
- {fileID: 1781028406820323425}
|
||||||
- {fileID: 366996911271636373}
|
- {fileID: 366996911271636373}
|
||||||
- {fileID: 6191742170513974480}
|
- {fileID: 6191742170513974480}
|
||||||
|
- {fileID: 1240498723}
|
||||||
|
- {fileID: 473911345}
|
||||||
|
- {fileID: 865274353}
|
||||||
- {fileID: 6350903300567888677}
|
- {fileID: 6350903300567888677}
|
||||||
|
- {fileID: 3372472533242412945}
|
||||||
|
@@ -6,61 +6,73 @@ namespace Script.Gameplay.Connect
|
|||||||
// 只负责在场景中绘制连接线,并处理信号传递
|
// 只负责在场景中绘制连接线,并处理信号传递
|
||||||
public class ConnectionLine : MonoBehaviour
|
public class ConnectionLine : MonoBehaviour
|
||||||
{
|
{
|
||||||
[SerializeField] private MonoBehaviour monoSource;
|
[SerializeField] private MonoBehaviour monoPointA;
|
||||||
[SerializeField] private MonoBehaviour monoTarget;
|
[SerializeField] private MonoBehaviour monoPointB;
|
||||||
private IConnectable _output;
|
private IConnectable _pointA;
|
||||||
private IConnectable _input;
|
private IConnectable _pointB;
|
||||||
|
|
||||||
private LineRenderer line;
|
private LineRenderer line;
|
||||||
|
|
||||||
private void Awake()
|
private void Awake()
|
||||||
{
|
{
|
||||||
_output = monoSource as IConnectable;
|
_pointA = monoPointA as IConnectable;
|
||||||
_input = monoTarget as IConnectable;
|
_pointB = monoPointB as IConnectable;
|
||||||
|
|
||||||
line = GetComponent<LineRenderer>();
|
line = GetComponent<LineRenderer>();
|
||||||
|
|
||||||
if (_output != null && _input != null)
|
SetLineRendererPositions();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void SetConnectable(IConnectable pointA, IConnectable pointB)
|
||||||
|
{
|
||||||
|
if(pointA == null || pointB == null)
|
||||||
{
|
{
|
||||||
SetConnectable(_output, _input);
|
Debug.Log("ConnectionLine requires two valid IConnectable points.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (pointA == pointB)
|
||||||
|
{
|
||||||
|
Debug.Log("ConnectionLine cannot connect the same point.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
_pointA = pointA;
|
||||||
|
_pointB = pointB;
|
||||||
|
pointA.ConnectionLines.Add(this);
|
||||||
|
pointB.ConnectionLines.Add(this);
|
||||||
|
SetLineRendererPositions();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void SetLineRendererPositions()
|
||||||
|
{
|
||||||
|
if (_pointA != null && _pointB != null)
|
||||||
|
{
|
||||||
|
line.SetPositions(new Vector3[]
|
||||||
|
{
|
||||||
|
_pointA.GetPosition(),
|
||||||
|
_pointB.GetPosition()
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SetConnectable(IConnectable output, IConnectable input)
|
public void SignalActive(bool active, GameObject sender)
|
||||||
{
|
{
|
||||||
_output = output;
|
if (_pointA != null && _pointB != null)
|
||||||
_input = input;
|
|
||||||
_output.IsConnectedOutput = true;
|
|
||||||
_input.IsConnectedInput = true;
|
|
||||||
|
|
||||||
line.SetPositions(new Vector3[]
|
|
||||||
{
|
{
|
||||||
_output.GetPosition(),
|
if (sender == _pointA.GetGameObject())
|
||||||
_input.GetPosition()
|
{
|
||||||
});
|
_pointB.SignalActive(active, sender);
|
||||||
}
|
}
|
||||||
|
else if (sender == _pointB.GetGameObject())
|
||||||
public void ReceiveSignal(bool active)
|
{
|
||||||
{
|
_pointA.SignalActive(active, sender);
|
||||||
SendSignal(active);
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void SendSignal(bool active)
|
|
||||||
{
|
|
||||||
_input.ReceiveSignal(active,this.gameObject);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnDestroy()
|
private void OnDestroy()
|
||||||
{
|
{
|
||||||
if (_output != null)
|
_pointA.ConnectionLines.Remove(this);
|
||||||
{
|
_pointB.ConnectionLines.Remove(this);
|
||||||
_output.IsConnectedOutput = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (_input != null)
|
|
||||||
{
|
|
||||||
_input.IsConnectedInput = false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@@ -1,25 +1,73 @@
|
|||||||
|
using System;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using Core;
|
using Core;
|
||||||
|
|
||||||
namespace Script.Gameplay.Connect
|
namespace Script.Gameplay.Connect
|
||||||
{
|
{
|
||||||
|
[Serializable]
|
||||||
|
public class PreviousConnection
|
||||||
|
{
|
||||||
|
public int PreConnectionID;
|
||||||
|
public MonoBehaviour source;
|
||||||
|
public MonoBehaviour target;
|
||||||
|
}
|
||||||
public class ConnectionLineManager : MonoSingleton<ConnectionLineManager>
|
public class ConnectionLineManager : MonoSingleton<ConnectionLineManager>
|
||||||
{
|
{
|
||||||
[SerializeField] private GameObject linePrefab;
|
[SerializeField] private GameObject linePrefab;
|
||||||
public List<ConnectionLine> connectionLines = new List<ConnectionLine>();
|
[SerializeField]private List<PreviousConnection> preConnectionLines = new List<PreviousConnection>();
|
||||||
|
private List<ConnectionLine> connectionLines = new List<ConnectionLine>();
|
||||||
public ConnectionLine GenerateConnectionLine(IConnectable source, IConnectable target)
|
|
||||||
|
private void Start()
|
||||||
|
{
|
||||||
|
GeneratePreviousConnectionLines(preConnectionLines);
|
||||||
|
}
|
||||||
|
|
||||||
|
public ConnectionLine GenerateConnectionLine(IConnectable a, IConnectable b)
|
||||||
{
|
{
|
||||||
GameObject lineObject = Instantiate(linePrefab, this.transform);
|
GameObject lineObject = Instantiate(linePrefab, this.transform);
|
||||||
ConnectionLine connectionLine = lineObject.GetComponent<ConnectionLine>();
|
ConnectionLine connectionLine = lineObject.GetComponent<ConnectionLine>();
|
||||||
if (connectionLine != null)
|
if (connectionLine != null)
|
||||||
{
|
{
|
||||||
connectionLine.SetConnectable(source, target);
|
connectionLine.SetConnectable(a, b);
|
||||||
connectionLines.Add(connectionLine);
|
connectionLines.Add(connectionLine);
|
||||||
return connectionLine;
|
return connectionLine;
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void CutTargetConnectionLines(IConnectable target)
|
||||||
|
{
|
||||||
|
List<ConnectionLine> linesToRemove = new List<ConnectionLine>();
|
||||||
|
foreach (var line in connectionLines)
|
||||||
|
{
|
||||||
|
if (line != null && (line.Equals(target)))
|
||||||
|
{
|
||||||
|
linesToRemove.Add(line);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
foreach (var line in linesToRemove)
|
||||||
|
{
|
||||||
|
connectionLines.Remove(line);
|
||||||
|
Destroy(line.gameObject);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void GeneratePreviousConnectionLines(List<PreviousConnection> previousConnections)
|
||||||
|
{
|
||||||
|
foreach (var preConnection in previousConnections)
|
||||||
|
{
|
||||||
|
IConnectable source = preConnection.source as IConnectable;
|
||||||
|
IConnectable target = preConnection.target as IConnectable;
|
||||||
|
if (source != null && target != null)
|
||||||
|
{
|
||||||
|
GenerateConnectionLine(source, target);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Debug.Log(preConnection.PreConnectionID + " connection failed to load.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@@ -8,12 +8,9 @@ namespace Script.Gameplay.Connect
|
|||||||
void OnGazeEnter(); // 玩家开始注视时触发
|
void OnGazeEnter(); // 玩家开始注视时触发
|
||||||
void OnGazeExit(); // 玩家停止注视时触发
|
void OnGazeExit(); // 玩家停止注视时触发
|
||||||
Vector3 GetPosition(); // 获取连接点位置
|
Vector3 GetPosition(); // 获取连接点位置
|
||||||
|
GameObject GetGameObject(); // 获取连接点物体
|
||||||
string GetConnectableName(); // 获取连接点名称
|
string GetConnectableName(); // 获取连接点名称
|
||||||
public ConnectionLine OutputConnectionLine { get; set; }
|
public List<ConnectionLine> ConnectionLines { get; set; }
|
||||||
public ConnectionLine InputConnectionLine { get; set; }
|
void SignalActive(bool active, GameObject sender); // 被激活
|
||||||
bool IsConnectedOutput { get; set; } // 是否作为输出端连接
|
|
||||||
bool IsConnectedInput { get; set; } // 是否作为输入端连接
|
|
||||||
void ReceiveSignal(bool active, GameObject sender); // 接收信号
|
|
||||||
void SendSignal(bool active, GameObject sender); // 发出信号
|
|
||||||
}
|
}
|
||||||
}
|
}
|
8
Assets/Script/Gameplay/Connect/ISignalSender.cs
Normal file
8
Assets/Script/Gameplay/Connect/ISignalSender.cs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
using UnityEngine;
|
||||||
|
namespace Script.Gameplay.Connect
|
||||||
|
{
|
||||||
|
public interface ISignalSender
|
||||||
|
{
|
||||||
|
public void SendSignal(bool active);
|
||||||
|
}
|
||||||
|
}
|
3
Assets/Script/Gameplay/Connect/ISignalSender.cs.meta
Normal file
3
Assets/Script/Gameplay/Connect/ISignalSender.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: dc3af72006f342c3b8b7526a5b09e6ee
|
||||||
|
timeCreated: 1760958923
|
@@ -1,11 +1,12 @@
|
|||||||
using System.Collections;
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using Script.Gameplay.Interface;
|
using Script.Gameplay.Interface;
|
||||||
using Script.Gameplay.Connect;
|
using Script.Gameplay.Connect;
|
||||||
|
|
||||||
namespace Script.Gameplay.Facility
|
namespace Script.Gameplay.Facility
|
||||||
{
|
{
|
||||||
public class ButtonInteractController : MonoBehaviour, IInteractable, IEditableComponent, IConnectable
|
public class ButtonInteractController : MonoBehaviour, IInteractable, IEditableComponent, IConnectable, ISignalSender
|
||||||
{
|
{
|
||||||
#region Interactable
|
#region Interactable
|
||||||
|
|
||||||
@@ -20,7 +21,7 @@ namespace Script.Gameplay.Facility
|
|||||||
public void Interact(GameObject interactor)
|
public void Interact(GameObject interactor)
|
||||||
{
|
{
|
||||||
if (!Interactable) return;
|
if (!Interactable) return;
|
||||||
StartCoroutine(SendSignalCoroutine(interactor));
|
StartCoroutine(SendSignalCoroutine());
|
||||||
Debug.Log("Button pressed");
|
Debug.Log("Button pressed");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -34,14 +35,15 @@ namespace Script.Gameplay.Facility
|
|||||||
// 可选:取消高亮
|
// 可选:取消高亮
|
||||||
}
|
}
|
||||||
|
|
||||||
private IEnumerator SendSignalCoroutine(GameObject sender)
|
private IEnumerator SendSignalCoroutine()
|
||||||
{
|
{
|
||||||
SendSignal(true, sender);
|
SendSignal(true);
|
||||||
|
Interactable = false;
|
||||||
// 按钮压下的动画或效果可以在这里添加
|
// 按钮压下的动画或效果可以在这里添加
|
||||||
|
|
||||||
yield return new WaitForSeconds(signalDuration);
|
yield return new WaitForSeconds(signalDuration);
|
||||||
|
SendSignal(false);
|
||||||
SendSignal(false, sender);
|
Interactable = true;
|
||||||
// 按钮弹起的动画或效果可以在这里添加
|
// 按钮弹起的动画或效果可以在这里添加
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -81,27 +83,30 @@ namespace Script.Gameplay.Facility
|
|||||||
return transform.position;
|
return transform.position;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public GameObject GetGameObject()
|
||||||
|
{
|
||||||
|
return gameObject;
|
||||||
|
}
|
||||||
|
|
||||||
public string GetConnectableName()
|
public string GetConnectableName()
|
||||||
{
|
{
|
||||||
return gameObject.name;
|
return gameObject.name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ConnectionLine OutputConnectionLine { get; set; }
|
public List<ConnectionLine> ConnectionLines { get; set; } = new List<ConnectionLine>();
|
||||||
public ConnectionLine InputConnectionLine { get; set; }
|
public void SignalActive(bool active, GameObject sender)
|
||||||
|
|
||||||
public bool IsConnectedOutput { get; set; }
|
|
||||||
public bool IsConnectedInput { get; set; }
|
|
||||||
|
|
||||||
public void ReceiveSignal(bool active, GameObject sender)
|
|
||||||
{
|
{
|
||||||
// 按钮通常不响应输入信号,可留空或自定义逻辑
|
// 按钮通常不接收信号,因此这里可以留空
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SendSignal(bool active, GameObject sender)
|
public void SendSignal(bool active)
|
||||||
{
|
{
|
||||||
if (OutputConnectionLine != null)
|
if (ConnectionLines != null)
|
||||||
{
|
{
|
||||||
OutputConnectionLine.ReceiveSignal(active);
|
foreach (var line in ConnectionLines)
|
||||||
|
{
|
||||||
|
line.SignalActive(active, this.gameObject);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using Gameplay.Player;
|
using Script.Gameplay.Player;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using Script.Gameplay.Interface;
|
using Script.Gameplay.Interface;
|
||||||
using Script.Gameplay.Connect;
|
using Script.Gameplay.Connect;
|
||||||
@@ -95,27 +95,22 @@ namespace Script.Gameplay.Facility
|
|||||||
return transform.position;
|
return transform.position;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public GameObject GetGameObject()
|
||||||
|
{
|
||||||
|
return gameObject;
|
||||||
|
}
|
||||||
|
|
||||||
public string GetConnectableName()
|
public string GetConnectableName()
|
||||||
{
|
{
|
||||||
return gameObject.name;
|
return gameObject.name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ConnectionLine OutputConnectionLine { get; set; }
|
public List<ConnectionLine> ConnectionLines { get; set; } = new List<ConnectionLine>();
|
||||||
public ConnectionLine InputConnectionLine { get; set; }
|
public void SignalActive(bool active, GameObject sender)
|
||||||
|
|
||||||
public bool IsConnectedOutput { get; set; }
|
|
||||||
public bool IsConnectedInput { get; set; }
|
|
||||||
|
|
||||||
public void ReceiveSignal(bool active, GameObject sender)
|
|
||||||
{
|
{
|
||||||
Interact(sender);
|
Interact(sender);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SendSignal(bool active, GameObject sender)
|
|
||||||
{
|
|
||||||
OutputConnectionLine.ReceiveSignal(active);
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
@@ -1,6 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using Gameplay.Player;
|
using Script.Gameplay.Player;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using Script.Gameplay.Interface;
|
using Script.Gameplay.Interface;
|
||||||
|
|
||||||
|
@@ -1,10 +1,11 @@
|
|||||||
|
using System.Collections.Generic;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using Script.Gameplay.Interface;
|
using Script.Gameplay.Interface;
|
||||||
using Script.Gameplay.Connect;
|
using Script.Gameplay.Connect;
|
||||||
|
|
||||||
namespace Script.Gameplay.Facility
|
namespace Script.Gameplay.Facility
|
||||||
{
|
{
|
||||||
public class LeverInteractController : MonoBehaviour, IInteractable, IEditableComponent, IConnectable
|
public class LeverInteractController : MonoBehaviour, IInteractable, IEditableComponent, IConnectable, ISignalSender
|
||||||
{
|
{
|
||||||
#region Interactable
|
#region Interactable
|
||||||
|
|
||||||
@@ -20,7 +21,7 @@ namespace Script.Gameplay.Facility
|
|||||||
{
|
{
|
||||||
if (!Interactable) return;
|
if (!Interactable) return;
|
||||||
isPulled = !isPulled;
|
isPulled = !isPulled;
|
||||||
SendSignal(isPulled, interactor);
|
SendSignal(isPulled);
|
||||||
// 可选:拉杆动画
|
// 可选:拉杆动画
|
||||||
Debug.Log(isPulled ? "Lever pulled down" : "Lever reset");
|
Debug.Log(isPulled ? "Lever pulled down" : "Lever reset");
|
||||||
}
|
}
|
||||||
@@ -58,29 +59,39 @@ namespace Script.Gameplay.Facility
|
|||||||
|
|
||||||
#region Connectable
|
#region Connectable
|
||||||
|
|
||||||
public void OnGazeEnter() { }
|
public void OnGazeEnter()
|
||||||
public void OnGazeExit() { }
|
|
||||||
public Vector3 GetPosition() => transform.position;
|
|
||||||
public string GetConnectableName() => gameObject.name;
|
|
||||||
public ConnectionLine OutputConnectionLine { get; set; }
|
|
||||||
public ConnectionLine InputConnectionLine { get; set; }
|
|
||||||
public bool IsConnectedOutput { get; set; }
|
|
||||||
public bool IsConnectedInput { get; set; }
|
|
||||||
|
|
||||||
public void ReceiveSignal(bool active, GameObject sender)
|
|
||||||
{
|
{
|
||||||
// 拉杆通常不响应输入信号
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SendSignal(bool active, GameObject sender)
|
public void OnGazeExit()
|
||||||
{
|
{
|
||||||
if (OutputConnectionLine != null)
|
}
|
||||||
|
|
||||||
|
public Vector3 GetPosition() => transform.position;
|
||||||
|
public GameObject GetGameObject()
|
||||||
|
{
|
||||||
|
return gameObject;
|
||||||
|
}
|
||||||
|
|
||||||
|
public string GetConnectableName() => gameObject.name;
|
||||||
|
public List<ConnectionLine> ConnectionLines { get; set; }= new List<ConnectionLine>();
|
||||||
|
|
||||||
|
public void SignalActive(bool active, GameObject sender)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
public void SendSignal(bool active)
|
||||||
|
{
|
||||||
|
if (ConnectionLines != null)
|
||||||
{
|
{
|
||||||
OutputConnectionLine.ReceiveSignal(active);
|
foreach (var line in ConnectionLines)
|
||||||
|
{
|
||||||
|
line.SignalActive(active, this.gameObject);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
76
Assets/Script/Gameplay/Facility/NumberSlotController.cs
Normal file
76
Assets/Script/Gameplay/Facility/NumberSlotController.cs
Normal file
@@ -0,0 +1,76 @@
|
|||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
using Script.Gameplay.Connect;
|
||||||
|
|
||||||
|
namespace Script.Gameplay.Facility
|
||||||
|
{
|
||||||
|
// 号码枚举类型
|
||||||
|
public enum NumberType
|
||||||
|
{
|
||||||
|
Zero,
|
||||||
|
One,
|
||||||
|
Two,
|
||||||
|
Three,
|
||||||
|
Four,
|
||||||
|
Five,
|
||||||
|
// Six,
|
||||||
|
// Seven,
|
||||||
|
// Eight,
|
||||||
|
// Nine
|
||||||
|
}
|
||||||
|
|
||||||
|
// 号码槽
|
||||||
|
public class NumberSlotController : MonoBehaviour, IConnectable, ISignalSender
|
||||||
|
{
|
||||||
|
[Header("号码槽设置")]
|
||||||
|
[SerializeField] private NumberType currentNumber = NumberType.Zero;
|
||||||
|
[SerializeField] private NumberType correctNumber = NumberType.One;
|
||||||
|
|
||||||
|
public List<ConnectionLine> ConnectionLines { get; set; } = new List<ConnectionLine>();
|
||||||
|
|
||||||
|
// 不可编辑,不可交互
|
||||||
|
// 可连接,可发信号
|
||||||
|
|
||||||
|
public void OnGazeEnter() { }
|
||||||
|
public void OnGazeExit() { }
|
||||||
|
public Vector3 GetPosition() => transform.position;
|
||||||
|
public GameObject GetGameObject() => gameObject;
|
||||||
|
public string GetConnectableName() => gameObject.name;
|
||||||
|
|
||||||
|
// 接收信号
|
||||||
|
public void SignalActive(bool active, GameObject sender)
|
||||||
|
{
|
||||||
|
if (active)
|
||||||
|
{
|
||||||
|
SwitchToNextNumber();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 切换到下一个号码
|
||||||
|
private void SwitchToNextNumber()
|
||||||
|
{
|
||||||
|
currentNumber = (NumberType)(((int)currentNumber + 1) % System.Enum.GetValues(typeof(NumberType)).Length);
|
||||||
|
CheckNumberAndSendSignal();
|
||||||
|
}
|
||||||
|
|
||||||
|
// 检查号码并发信号
|
||||||
|
private void CheckNumberAndSendSignal()
|
||||||
|
{
|
||||||
|
bool isCorrect = currentNumber == correctNumber;
|
||||||
|
SendSignal(isCorrect);
|
||||||
|
}
|
||||||
|
|
||||||
|
// 发出信号
|
||||||
|
public void SendSignal(bool active)
|
||||||
|
{
|
||||||
|
if (ConnectionLines != null)
|
||||||
|
{
|
||||||
|
foreach (var line in ConnectionLines)
|
||||||
|
{
|
||||||
|
line.SignalActive(active, this.gameObject);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@@ -0,0 +1,3 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 301178d89b6b43e0844e3d39aa579442
|
||||||
|
timeCreated: 1760961220
|
@@ -1,10 +1,11 @@
|
|||||||
|
using System.Collections.Generic;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using Script.Gameplay.Interface;
|
using Script.Gameplay.Interface;
|
||||||
using Script.Gameplay.Connect;
|
using Script.Gameplay.Connect;
|
||||||
|
|
||||||
namespace Script.Gameplay.Facility
|
namespace Script.Gameplay.Facility
|
||||||
{
|
{
|
||||||
public class PressurePlateController : MonoBehaviour, IEditableComponent, IConnectable
|
public class PressurePlateController : MonoBehaviour, IEditableComponent, IConnectable, ISignalSender
|
||||||
{
|
{
|
||||||
[SerializeField] private bool isActive = true;
|
[SerializeField] private bool isActive = true;
|
||||||
[SerializeField] private LayerMask detectLayer = ~0; // 检测所有层,可在Inspector中指定
|
[SerializeField] private LayerMask detectLayer = ~0; // 检测所有层,可在Inspector中指定
|
||||||
@@ -16,10 +17,11 @@ namespace Script.Gameplay.Facility
|
|||||||
private void FixedUpdate()
|
private void FixedUpdate()
|
||||||
{
|
{
|
||||||
if (!isActive) return;
|
if (!isActive) return;
|
||||||
bool hasObject = Physics.CheckBox(transform.position + plateOffset, plateSize * 0.5f, Quaternion.identity, detectLayer);
|
bool hasObject = Physics.CheckBox(transform.position + plateOffset, plateSize * 0.5f, Quaternion.identity,
|
||||||
|
detectLayer);
|
||||||
if (hasObject != lastState)
|
if (hasObject != lastState)
|
||||||
{
|
{
|
||||||
SendSignal(hasObject, gameObject);
|
SendSignal(hasObject);
|
||||||
lastState = hasObject;
|
lastState = hasObject;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -39,25 +41,37 @@ namespace Script.Gameplay.Facility
|
|||||||
|
|
||||||
#region Connectable
|
#region Connectable
|
||||||
|
|
||||||
public void OnGazeEnter() { }
|
public void OnGazeEnter()
|
||||||
public void OnGazeExit() { }
|
|
||||||
public Vector3 GetPosition() => transform.position;
|
|
||||||
public string GetConnectableName() => gameObject.name;
|
|
||||||
public ConnectionLine OutputConnectionLine { get; set; }
|
|
||||||
public ConnectionLine InputConnectionLine { get; set; }
|
|
||||||
public bool IsConnectedOutput { get; set; }
|
|
||||||
public bool IsConnectedInput { get; set; }
|
|
||||||
|
|
||||||
public void ReceiveSignal(bool active, GameObject sender)
|
|
||||||
{
|
{
|
||||||
// 压力板不响应输入信号
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SendSignal(bool active, GameObject sender)
|
public void OnGazeExit()
|
||||||
{
|
{
|
||||||
if (OutputConnectionLine != null)
|
}
|
||||||
|
|
||||||
|
public Vector3 GetPosition() => transform.position;
|
||||||
|
|
||||||
|
public GameObject GetGameObject()
|
||||||
|
{
|
||||||
|
return gameObject;
|
||||||
|
}
|
||||||
|
|
||||||
|
public string GetConnectableName() => gameObject.name;
|
||||||
|
public List<ConnectionLine> ConnectionLines { get; set; } = new List<ConnectionLine>();
|
||||||
|
|
||||||
|
public void SignalActive(bool active, GameObject sender)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
public void SendSignal(bool active)
|
||||||
|
{
|
||||||
|
if (ConnectionLines != null)
|
||||||
{
|
{
|
||||||
OutputConnectionLine.ReceiveSignal(active);
|
foreach (var line in ConnectionLines)
|
||||||
|
{
|
||||||
|
line.SignalActive(active, this.gameObject);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -71,5 +85,4 @@ namespace Script.Gameplay.Facility
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@@ -118,6 +118,15 @@ namespace Script.Gameplay.Input
|
|||||||
""processors"": """",
|
""processors"": """",
|
||||||
""interactions"": """",
|
""interactions"": """",
|
||||||
""initialStateCheck"": false
|
""initialStateCheck"": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
""name"": ""CutLine"",
|
||||||
|
""type"": ""Button"",
|
||||||
|
""id"": ""bf20e378-b5e0-4749-90b7-fc2aa09bd5c9"",
|
||||||
|
""expectedControlType"": """",
|
||||||
|
""processors"": """",
|
||||||
|
""interactions"": """",
|
||||||
|
""initialStateCheck"": false
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
""bindings"": [
|
""bindings"": [
|
||||||
@@ -274,6 +283,17 @@ namespace Script.Gameplay.Input
|
|||||||
""action"": ""SetInput"",
|
""action"": ""SetInput"",
|
||||||
""isComposite"": false,
|
""isComposite"": false,
|
||||||
""isPartOfComposite"": false
|
""isPartOfComposite"": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
""name"": """",
|
||||||
|
""id"": ""53d79cef-a048-4b85-8078-03fcfeb79182"",
|
||||||
|
""path"": ""<Keyboard>/x"",
|
||||||
|
""interactions"": """",
|
||||||
|
""processors"": """",
|
||||||
|
""groups"": """",
|
||||||
|
""action"": ""CutLine"",
|
||||||
|
""isComposite"": false,
|
||||||
|
""isPartOfComposite"": false
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -292,6 +312,7 @@ namespace Script.Gameplay.Input
|
|||||||
m_Player_Connect = m_Player.FindAction("Connect", throwIfNotFound: true);
|
m_Player_Connect = m_Player.FindAction("Connect", throwIfNotFound: true);
|
||||||
m_Player_SetOutput = m_Player.FindAction("SetOutput", throwIfNotFound: true);
|
m_Player_SetOutput = m_Player.FindAction("SetOutput", throwIfNotFound: true);
|
||||||
m_Player_SetInput = m_Player.FindAction("SetInput", throwIfNotFound: true);
|
m_Player_SetInput = m_Player.FindAction("SetInput", throwIfNotFound: true);
|
||||||
|
m_Player_CutLine = m_Player.FindAction("CutLine", throwIfNotFound: true);
|
||||||
}
|
}
|
||||||
|
|
||||||
~@PlayerInputActions()
|
~@PlayerInputActions()
|
||||||
@@ -368,6 +389,7 @@ namespace Script.Gameplay.Input
|
|||||||
private readonly InputAction m_Player_Connect;
|
private readonly InputAction m_Player_Connect;
|
||||||
private readonly InputAction m_Player_SetOutput;
|
private readonly InputAction m_Player_SetOutput;
|
||||||
private readonly InputAction m_Player_SetInput;
|
private readonly InputAction m_Player_SetInput;
|
||||||
|
private readonly InputAction m_Player_CutLine;
|
||||||
public struct PlayerActions
|
public struct PlayerActions
|
||||||
{
|
{
|
||||||
private @PlayerInputActions m_Wrapper;
|
private @PlayerInputActions m_Wrapper;
|
||||||
@@ -382,6 +404,7 @@ namespace Script.Gameplay.Input
|
|||||||
public InputAction @Connect => m_Wrapper.m_Player_Connect;
|
public InputAction @Connect => m_Wrapper.m_Player_Connect;
|
||||||
public InputAction @SetOutput => m_Wrapper.m_Player_SetOutput;
|
public InputAction @SetOutput => m_Wrapper.m_Player_SetOutput;
|
||||||
public InputAction @SetInput => m_Wrapper.m_Player_SetInput;
|
public InputAction @SetInput => m_Wrapper.m_Player_SetInput;
|
||||||
|
public InputAction @CutLine => m_Wrapper.m_Player_CutLine;
|
||||||
public InputActionMap Get() { return m_Wrapper.m_Player; }
|
public InputActionMap Get() { return m_Wrapper.m_Player; }
|
||||||
public void Enable() { Get().Enable(); }
|
public void Enable() { Get().Enable(); }
|
||||||
public void Disable() { Get().Disable(); }
|
public void Disable() { Get().Disable(); }
|
||||||
@@ -421,6 +444,9 @@ namespace Script.Gameplay.Input
|
|||||||
@SetInput.started += instance.OnSetInput;
|
@SetInput.started += instance.OnSetInput;
|
||||||
@SetInput.performed += instance.OnSetInput;
|
@SetInput.performed += instance.OnSetInput;
|
||||||
@SetInput.canceled += instance.OnSetInput;
|
@SetInput.canceled += instance.OnSetInput;
|
||||||
|
@CutLine.started += instance.OnCutLine;
|
||||||
|
@CutLine.performed += instance.OnCutLine;
|
||||||
|
@CutLine.canceled += instance.OnCutLine;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void UnregisterCallbacks(IPlayerActions instance)
|
private void UnregisterCallbacks(IPlayerActions instance)
|
||||||
@@ -455,6 +481,9 @@ namespace Script.Gameplay.Input
|
|||||||
@SetInput.started -= instance.OnSetInput;
|
@SetInput.started -= instance.OnSetInput;
|
||||||
@SetInput.performed -= instance.OnSetInput;
|
@SetInput.performed -= instance.OnSetInput;
|
||||||
@SetInput.canceled -= instance.OnSetInput;
|
@SetInput.canceled -= instance.OnSetInput;
|
||||||
|
@CutLine.started -= instance.OnCutLine;
|
||||||
|
@CutLine.performed -= instance.OnCutLine;
|
||||||
|
@CutLine.canceled -= instance.OnCutLine;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void RemoveCallbacks(IPlayerActions instance)
|
public void RemoveCallbacks(IPlayerActions instance)
|
||||||
@@ -484,6 +513,7 @@ namespace Script.Gameplay.Input
|
|||||||
void OnConnect(InputAction.CallbackContext context);
|
void OnConnect(InputAction.CallbackContext context);
|
||||||
void OnSetOutput(InputAction.CallbackContext context);
|
void OnSetOutput(InputAction.CallbackContext context);
|
||||||
void OnSetInput(InputAction.CallbackContext context);
|
void OnSetInput(InputAction.CallbackContext context);
|
||||||
|
void OnCutLine(InputAction.CallbackContext context);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using Gameplay.Player;
|
using Script.Gameplay.Player;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using Script.Gameplay.Facility;
|
using Script.Gameplay.Facility;
|
||||||
|
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
namespace Gameplay.Player
|
namespace Script.Gameplay.Player
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 通用第一人称射线检测,获取玩家注视的 GameObject。
|
/// 通用第一人称射线检测,获取玩家注视的 GameObject。
|
||||||
|
@@ -2,7 +2,7 @@ using Core;
|
|||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using Script.Gameplay.Input;
|
using Script.Gameplay.Input;
|
||||||
|
|
||||||
namespace Gameplay.Player
|
namespace Script.Gameplay.Player
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 玩家第一人称相机控制器
|
/// 玩家第一人称相机控制器
|
||||||
|
@@ -5,12 +5,13 @@ using Script.Gameplay.Connect;
|
|||||||
using Script.Gameplay.Input;
|
using Script.Gameplay.Input;
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace Gameplay.Player
|
namespace Script.Gameplay.Player
|
||||||
{
|
{
|
||||||
public class PlayerConnectController : MonoBehaviour
|
public class PlayerConnectController : MonoBehaviour
|
||||||
{
|
{
|
||||||
public bool IsEnableConnecting = true; // 是否启用连接功能
|
public bool IsEnableConnecting = true; // 是否启用连接功能
|
||||||
[SerializeField] private FirstPersonRaycaster raycaster; // 第一人称射线检测器
|
[SerializeField] private FirstPersonRaycaster raycaster; // 第一人称射线检测器
|
||||||
|
[SerializeField] private float maxConnectDistance = 10f; // 最大连接距离
|
||||||
|
|
||||||
private IConnectable currentTarget; // 当前注视的可连接对象
|
private IConnectable currentTarget; // 当前注视的可连接对象
|
||||||
private IConnectable previousGazedTarget; // 上一次注视的 IConnectable(用于触发进入/离开)
|
private IConnectable previousGazedTarget; // 上一次注视的 IConnectable(用于触发进入/离开)
|
||||||
@@ -18,15 +19,16 @@ namespace Gameplay.Player
|
|||||||
|
|
||||||
private IConnectable outTarget;
|
private IConnectable outTarget;
|
||||||
private IConnectable inputTarget;
|
private IConnectable inputTarget;
|
||||||
public event Action<IConnectable> OnSetOutputTarget;
|
public event Action<IConnectable> OnSetPointA;
|
||||||
public event Action<IConnectable> OnSetInputTarget;
|
public event Action<IConnectable> OnSetPointB;
|
||||||
|
|
||||||
void Start()
|
void Start()
|
||||||
{
|
{
|
||||||
inputManager = InputManager.Instance;
|
inputManager = InputManager.Instance;
|
||||||
inputManager.Input.Player.SetOutput.performed += ctx => SetOutTarget(currentTarget);
|
inputManager.Input.Player.SetOutput.performed += ctx => SetPointA(currentTarget);
|
||||||
inputManager.Input.Player.SetInput.performed += ctx => SetInputTarget(currentTarget);
|
inputManager.Input.Player.SetInput.performed += ctx => SetPointB(currentTarget);
|
||||||
inputManager.Input.Player.Connect.performed += ctx => CreateConnection();
|
inputManager.Input.Player.Connect.performed += ctx => CreateConnection();
|
||||||
|
inputManager.Input.Player.CutLine.performed += ctx => CutConnectLine(currentTarget);
|
||||||
|
|
||||||
if (raycaster == null)
|
if (raycaster == null)
|
||||||
raycaster = GetComponent<FirstPersonRaycaster>() ?? GetComponentInChildren<FirstPersonRaycaster>();
|
raycaster = GetComponent<FirstPersonRaycaster>() ?? GetComponentInChildren<FirstPersonRaycaster>();
|
||||||
@@ -75,26 +77,27 @@ namespace Gameplay.Player
|
|||||||
return currentTarget;
|
return currentTarget;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SetOutTarget(IConnectable target)
|
public void SetPointA(IConnectable target)
|
||||||
{
|
{
|
||||||
if (target == null) return;
|
if (target == null) return;
|
||||||
if(!IsEnableConnecting) return;
|
if(!IsEnableConnecting) return;
|
||||||
if (!target.IsConnectedOutput)
|
outTarget = target;
|
||||||
{
|
OnSetPointA?.Invoke(outTarget);
|
||||||
outTarget = target;
|
|
||||||
OnSetOutputTarget?.Invoke(outTarget);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SetInputTarget(IConnectable target)
|
public void SetPointB(IConnectable target)
|
||||||
{
|
{
|
||||||
if (target == null) return;
|
if (target == null) return;
|
||||||
if(!IsEnableConnecting) return;
|
if(!IsEnableConnecting) return;
|
||||||
if (!target.IsConnectedInput)
|
inputTarget = target;
|
||||||
{
|
OnSetPointB?.Invoke(inputTarget);
|
||||||
inputTarget = currentTarget;
|
}
|
||||||
OnSetInputTarget?.Invoke(inputTarget);
|
|
||||||
}
|
public void CutConnectLine(IConnectable target)
|
||||||
|
{
|
||||||
|
if (target == null) return;
|
||||||
|
if(!IsEnableConnecting) return;
|
||||||
|
ConnectionLineManager.Instance.CutTargetConnectionLines(target);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void CreateConnection()
|
private void CreateConnection()
|
||||||
@@ -102,9 +105,16 @@ namespace Gameplay.Player
|
|||||||
if(!IsEnableConnecting) return;
|
if(!IsEnableConnecting) return;
|
||||||
if (outTarget != null && inputTarget != null && outTarget != inputTarget)
|
if (outTarget != null && inputTarget != null && outTarget != inputTarget)
|
||||||
{
|
{
|
||||||
|
//计算距离
|
||||||
|
float distance = Vector3.Distance(outTarget.GetPosition(), inputTarget.GetPosition());
|
||||||
|
if (distance > maxConnectDistance)
|
||||||
|
{
|
||||||
|
Debug.Log("Cannot create connection: targets are too far apart.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
// 创建连接线
|
||||||
ConnectionLine connectionLine = ConnectionLineManager.Instance.GenerateConnectionLine(outTarget, inputTarget);
|
ConnectionLine connectionLine = ConnectionLineManager.Instance.GenerateConnectionLine(outTarget, inputTarget);
|
||||||
outTarget.OutputConnectionLine = connectionLine;
|
|
||||||
inputTarget.InputConnectionLine = connectionLine;
|
|
||||||
// 重置信号目标
|
// 重置信号目标
|
||||||
outTarget = null;
|
outTarget = null;
|
||||||
inputTarget = null;
|
inputTarget = null;
|
||||||
|
@@ -1,9 +0,0 @@
|
|||||||
using UnityEngine;
|
|
||||||
|
|
||||||
namespace Gameplay.Player
|
|
||||||
{
|
|
||||||
public class PlayerConnectionLineController : MonoBehaviour
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,3 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: e152f6521db343f3aac46c7c448491bc
|
|
||||||
timeCreated: 1760841639
|
|
@@ -1,13 +1,12 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using Gameplay;
|
|
||||||
using Script.Gameplay.Interface;
|
using Script.Gameplay.Interface;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using Core;
|
using Core;
|
||||||
using Script.Gameplay.Global;
|
using Script.Gameplay.Global;
|
||||||
|
|
||||||
namespace Gameplay.Player
|
namespace Script.Gameplay.Player
|
||||||
{
|
{
|
||||||
public class PlayerController : MonoBehaviour, IDamageable
|
public class PlayerController : MonoBehaviour, IDamageable
|
||||||
{
|
{
|
||||||
|
@@ -3,7 +3,7 @@ using UnityEngine;
|
|||||||
using Script.Gameplay.Interface;
|
using Script.Gameplay.Interface;
|
||||||
using Script.Gameplay.Input;
|
using Script.Gameplay.Input;
|
||||||
|
|
||||||
namespace Gameplay.Player
|
namespace Script.Gameplay.Player
|
||||||
{
|
{
|
||||||
public class PlayerEditController:MonoBehaviour
|
public class PlayerEditController:MonoBehaviour
|
||||||
{
|
{
|
||||||
|
@@ -3,7 +3,7 @@ using Script.Gameplay.Interface;
|
|||||||
using System;
|
using System;
|
||||||
using Script.Gameplay.Input;
|
using Script.Gameplay.Input;
|
||||||
|
|
||||||
namespace Gameplay.Player
|
namespace Script.Gameplay.Player
|
||||||
{
|
{
|
||||||
public class PlayerInteractorController : MonoBehaviour
|
public class PlayerInteractorController : MonoBehaviour
|
||||||
{
|
{
|
||||||
|
@@ -3,7 +3,7 @@ using Core;
|
|||||||
using Script.Gameplay.Input;
|
using Script.Gameplay.Input;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
namespace Gameplay.Player
|
namespace Script.Gameplay.Player
|
||||||
{
|
{
|
||||||
public class PlayerMoveController : MonoBehaviour
|
public class PlayerMoveController : MonoBehaviour
|
||||||
{
|
{
|
||||||
|
@@ -4,7 +4,7 @@ using UnityEngine;
|
|||||||
using Core;
|
using Core;
|
||||||
using Script.Gameplay.Global;
|
using Script.Gameplay.Global;
|
||||||
|
|
||||||
namespace Gameplay.Player
|
namespace Script.Gameplay.Player
|
||||||
{
|
{
|
||||||
public enum WatchMode
|
public enum WatchMode
|
||||||
{
|
{
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using Core;
|
using Core;
|
||||||
using Gameplay.Player;
|
using Script.Gameplay.Player;
|
||||||
using Script.Gameplay.Connect;
|
using Script.Gameplay.Connect;
|
||||||
using TMPro;
|
using TMPro;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
@@ -23,8 +23,8 @@ namespace UI
|
|||||||
private void OnGetConnectController(PlayerConnectController controller)
|
private void OnGetConnectController(PlayerConnectController controller)
|
||||||
{
|
{
|
||||||
_playerConnectController = controller;
|
_playerConnectController = controller;
|
||||||
_playerConnectController.OnSetInputTarget += UpdateInputText;
|
_playerConnectController.OnSetPointB += UpdateInputText;
|
||||||
_playerConnectController.OnSetOutputTarget += UpdateOutputText;
|
_playerConnectController.OnSetPointA += UpdateOutputText;
|
||||||
UpdateInputText(null);
|
UpdateInputText(null);
|
||||||
UpdateOutputText(null);
|
UpdateOutputText(null);
|
||||||
}
|
}
|
||||||
|
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using Core;
|
using Core;
|
||||||
using Script.Gameplay.Interface;
|
using Script.Gameplay.Interface;
|
||||||
using Gameplay.Player;
|
using Script.Gameplay.Player;
|
||||||
using Script.Gameplay.Facility;
|
using Script.Gameplay.Facility;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using Script.Gameplay.Input;
|
using Script.Gameplay.Input;
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using Core;
|
using Core;
|
||||||
using Gameplay.Player;
|
using Script.Gameplay.Player;
|
||||||
using TMPro;
|
using TMPro;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.UI;
|
using UnityEngine.UI;
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using Core;
|
using Core;
|
||||||
using Gameplay.Player;
|
using Script.Gameplay.Player;
|
||||||
using TMPro;
|
using TMPro;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.UI;
|
using UnityEngine.UI;
|
||||||
|
@@ -94,6 +94,15 @@
|
|||||||
"processors": "",
|
"processors": "",
|
||||||
"interactions": "",
|
"interactions": "",
|
||||||
"initialStateCheck": false
|
"initialStateCheck": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "CutLine",
|
||||||
|
"type": "Button",
|
||||||
|
"id": "bf20e378-b5e0-4749-90b7-fc2aa09bd5c9",
|
||||||
|
"expectedControlType": "",
|
||||||
|
"processors": "",
|
||||||
|
"interactions": "",
|
||||||
|
"initialStateCheck": false
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"bindings": [
|
"bindings": [
|
||||||
@@ -250,6 +259,17 @@
|
|||||||
"action": "SetInput",
|
"action": "SetInput",
|
||||||
"isComposite": false,
|
"isComposite": false,
|
||||||
"isPartOfComposite": false
|
"isPartOfComposite": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "",
|
||||||
|
"id": "53d79cef-a048-4b85-8078-03fcfeb79182",
|
||||||
|
"path": "<Keyboard>/x",
|
||||||
|
"interactions": "",
|
||||||
|
"processors": "",
|
||||||
|
"groups": "",
|
||||||
|
"action": "CutLine",
|
||||||
|
"isComposite": false,
|
||||||
|
"isPartOfComposite": false
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user