Commit 40f8384c authored by saad's avatar saad

add Pliers anim

parent 1b1592b9
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -951,7 +951,6 @@ Transform: ...@@ -951,7 +951,6 @@ Transform:
- {fileID: 1815988071432483138} - {fileID: 1815988071432483138}
- {fileID: 6964695774511440441} - {fileID: 6964695774511440441}
- {fileID: 3896536240952036174} - {fileID: 3896536240952036174}
- {fileID: 5179955919078466844}
- {fileID: 5705122527314713829} - {fileID: 5705122527314713829}
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
...@@ -1994,6 +1993,21 @@ PrefabInstance: ...@@ -1994,6 +1993,21 @@ PrefabInstance:
propertyPath: m_AnchoredPosition.y propertyPath: m_AnchoredPosition.y
value: -0.00047 value: -0.00047
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 3752996727221814853, guid: bbdeff09fea42b34baef4d5aee1926e0,
type: 3}
propertyPath: m_LocalPosition.x
value: -0.00057
objectReference: {fileID: 0}
- target: {fileID: 3752996727221814853, guid: bbdeff09fea42b34baef4d5aee1926e0,
type: 3}
propertyPath: m_LocalPosition.y
value: 0.00124
objectReference: {fileID: 0}
- target: {fileID: 3752996727221814853, guid: bbdeff09fea42b34baef4d5aee1926e0,
type: 3}
propertyPath: m_LocalPosition.z
value: -0.00063
objectReference: {fileID: 0}
- target: {fileID: 3944800286380083876, guid: bbdeff09fea42b34baef4d5aee1926e0, - target: {fileID: 3944800286380083876, guid: bbdeff09fea42b34baef4d5aee1926e0,
type: 3} type: 3}
propertyPath: m_Mesh propertyPath: m_Mesh
...@@ -2188,6 +2202,11 @@ PrefabInstance: ...@@ -2188,6 +2202,11 @@ PrefabInstance:
value: value:
objectReference: {fileID: -1193464157521038192, guid: 27155968e33998b44a205b59d3c9bbca, objectReference: {fileID: -1193464157521038192, guid: 27155968e33998b44a205b59d3c9bbca,
type: 3} type: 3}
- target: {fileID: 8597538289810706562, guid: bbdeff09fea42b34baef4d5aee1926e0,
type: 3}
propertyPath: m_Enabled
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8597538289810706562, guid: bbdeff09fea42b34baef4d5aee1926e0, - target: {fileID: 8597538289810706562, guid: bbdeff09fea42b34baef4d5aee1926e0,
type: 3} type: 3}
propertyPath: m_Materials.Array.data[0] propertyPath: m_Materials.Array.data[0]
...@@ -2344,6 +2363,21 @@ PrefabInstance: ...@@ -2344,6 +2363,21 @@ PrefabInstance:
propertyPath: m_AnchoredPosition.y propertyPath: m_AnchoredPosition.y
value: -0.00048 value: -0.00048
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 3752996727221814853, guid: bbdeff09fea42b34baef4d5aee1926e0,
type: 3}
propertyPath: m_LocalPosition.x
value: 0.00177
objectReference: {fileID: 0}
- target: {fileID: 3752996727221814853, guid: bbdeff09fea42b34baef4d5aee1926e0,
type: 3}
propertyPath: m_LocalPosition.y
value: 0.00124
objectReference: {fileID: 0}
- target: {fileID: 3752996727221814853, guid: bbdeff09fea42b34baef4d5aee1926e0,
type: 3}
propertyPath: m_LocalPosition.z
value: -0.00069
objectReference: {fileID: 0}
- target: {fileID: 3944800286380083876, guid: bbdeff09fea42b34baef4d5aee1926e0, - target: {fileID: 3944800286380083876, guid: bbdeff09fea42b34baef4d5aee1926e0,
type: 3} type: 3}
propertyPath: m_Mesh propertyPath: m_Mesh
...@@ -2528,6 +2562,11 @@ PrefabInstance: ...@@ -2528,6 +2562,11 @@ PrefabInstance:
value: value:
objectReference: {fileID: 3488460312929942068, guid: 27155968e33998b44a205b59d3c9bbca, objectReference: {fileID: 3488460312929942068, guid: 27155968e33998b44a205b59d3c9bbca,
type: 3} type: 3}
- target: {fileID: 8597538289810706562, guid: bbdeff09fea42b34baef4d5aee1926e0,
type: 3}
propertyPath: m_Enabled
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8597538289810706562, guid: bbdeff09fea42b34baef4d5aee1926e0, - target: {fileID: 8597538289810706562, guid: bbdeff09fea42b34baef4d5aee1926e0,
type: 3} type: 3}
propertyPath: m_Materials.Array.data[0] propertyPath: m_Materials.Array.data[0]
...@@ -2647,7 +2686,7 @@ PrefabInstance: ...@@ -2647,7 +2686,7 @@ PrefabInstance:
serializedVersion: 2 serializedVersion: 2
m_Modification: m_Modification:
serializedVersion: 3 serializedVersion: 3
m_TransformParent: {fileID: 1599469489932916659} m_TransformParent: {fileID: 5705122527314713829}
m_Modifications: m_Modifications:
- target: {fileID: 2246554600309838374, guid: 2884f9d7dd266df448b2650e12410fef, - target: {fileID: 2246554600309838374, guid: 2884f9d7dd266df448b2650e12410fef,
type: 3} type: 3}
...@@ -2687,17 +2726,17 @@ PrefabInstance: ...@@ -2687,17 +2726,17 @@ PrefabInstance:
- target: {fileID: 7335377621544860071, guid: 2884f9d7dd266df448b2650e12410fef, - target: {fileID: 7335377621544860071, guid: 2884f9d7dd266df448b2650e12410fef,
type: 3} type: 3}
propertyPath: m_LocalScale.x propertyPath: m_LocalScale.x
value: 0.8000001 value: 4
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 7335377621544860071, guid: 2884f9d7dd266df448b2650e12410fef, - target: {fileID: 7335377621544860071, guid: 2884f9d7dd266df448b2650e12410fef,
type: 3} type: 3}
propertyPath: m_LocalScale.y propertyPath: m_LocalScale.y
value: 0.8 value: 4
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 7335377621544860071, guid: 2884f9d7dd266df448b2650e12410fef, - target: {fileID: 7335377621544860071, guid: 2884f9d7dd266df448b2650e12410fef,
type: 3} type: 3}
propertyPath: m_LocalScale.z propertyPath: m_LocalScale.z
value: 0.8000001 value: 4
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 7335377621544860071, guid: 2884f9d7dd266df448b2650e12410fef, - target: {fileID: 7335377621544860071, guid: 2884f9d7dd266df448b2650e12410fef,
type: 3} type: 3}
...@@ -2717,22 +2756,22 @@ PrefabInstance: ...@@ -2717,22 +2756,22 @@ PrefabInstance:
- target: {fileID: 7335377621544860071, guid: 2884f9d7dd266df448b2650e12410fef, - target: {fileID: 7335377621544860071, guid: 2884f9d7dd266df448b2650e12410fef,
type: 3} type: 3}
propertyPath: m_LocalRotation.w propertyPath: m_LocalRotation.w
value: 0.9996174 value: 1
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 7335377621544860071, guid: 2884f9d7dd266df448b2650e12410fef, - target: {fileID: 7335377621544860071, guid: 2884f9d7dd266df448b2650e12410fef,
type: 3} type: 3}
propertyPath: m_LocalRotation.x propertyPath: m_LocalRotation.x
value: -0.000001459755 value: -0.0000014603137
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 7335377621544860071, guid: 2884f9d7dd266df448b2650e12410fef, - target: {fileID: 7335377621544860071, guid: 2884f9d7dd266df448b2650e12410fef,
type: 3} type: 3}
propertyPath: m_LocalRotation.y propertyPath: m_LocalRotation.y
value: -0.027659994 value: -0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 7335377621544860071, guid: 2884f9d7dd266df448b2650e12410fef, - target: {fileID: 7335377621544860071, guid: 2884f9d7dd266df448b2650e12410fef,
type: 3} type: 3}
propertyPath: m_LocalRotation.z propertyPath: m_LocalRotation.z
value: -0.00000004039227 value: -0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 7335377621544860071, guid: 2884f9d7dd266df448b2650e12410fef, - target: {fileID: 7335377621544860071, guid: 2884f9d7dd266df448b2650e12410fef,
type: 3} type: 3}
...@@ -2861,7 +2900,11 @@ PrefabInstance: ...@@ -2861,7 +2900,11 @@ PrefabInstance:
objectReference: {fileID: 0} objectReference: {fileID: 0}
m_RemovedComponents: [] m_RemovedComponents: []
m_RemovedGameObjects: [] m_RemovedGameObjects: []
m_AddedGameObjects: [] m_AddedGameObjects:
- targetCorrespondingSourceObject: {fileID: 7551875814654135961, guid: 85f165eafc1ca6049ae32e10468695f0,
type: 3}
insertIndex: -1
addedObject: {fileID: 5179955919078466844}
m_AddedComponents: [] m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 85f165eafc1ca6049ae32e10468695f0, type: 3} m_SourcePrefab: {fileID: 100100000, guid: 85f165eafc1ca6049ae32e10468695f0, type: 3}
--- !u!114 &3293678319876346094 stripped --- !u!114 &3293678319876346094 stripped
...@@ -2920,6 +2963,21 @@ PrefabInstance: ...@@ -2920,6 +2963,21 @@ PrefabInstance:
propertyPath: m_AnchoredPosition.y propertyPath: m_AnchoredPosition.y
value: 0.00047459826 value: 0.00047459826
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 3752996727221814853, guid: bbdeff09fea42b34baef4d5aee1926e0,
type: 3}
propertyPath: m_LocalPosition.x
value: 0.00125
objectReference: {fileID: 0}
- target: {fileID: 3752996727221814853, guid: bbdeff09fea42b34baef4d5aee1926e0,
type: 3}
propertyPath: m_LocalPosition.y
value: 0.00123
objectReference: {fileID: 0}
- target: {fileID: 3752996727221814853, guid: bbdeff09fea42b34baef4d5aee1926e0,
type: 3}
propertyPath: m_LocalPosition.z
value: -0.00051
objectReference: {fileID: 0}
- target: {fileID: 3944800286380083876, guid: bbdeff09fea42b34baef4d5aee1926e0, - target: {fileID: 3944800286380083876, guid: bbdeff09fea42b34baef4d5aee1926e0,
type: 3} type: 3}
propertyPath: m_Mesh propertyPath: m_Mesh
...@@ -3059,6 +3117,11 @@ PrefabInstance: ...@@ -3059,6 +3117,11 @@ PrefabInstance:
value: value:
objectReference: {fileID: 637180326278667566, guid: 27155968e33998b44a205b59d3c9bbca, objectReference: {fileID: 637180326278667566, guid: 27155968e33998b44a205b59d3c9bbca,
type: 3} type: 3}
- target: {fileID: 8597538289810706562, guid: bbdeff09fea42b34baef4d5aee1926e0,
type: 3}
propertyPath: m_Enabled
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8597538289810706562, guid: bbdeff09fea42b34baef4d5aee1926e0, - target: {fileID: 8597538289810706562, guid: bbdeff09fea42b34baef4d5aee1926e0,
type: 3} type: 3}
propertyPath: m_Materials.Array.data[0] propertyPath: m_Materials.Array.data[0]
...@@ -3190,6 +3253,56 @@ PrefabInstance: ...@@ -3190,6 +3253,56 @@ PrefabInstance:
propertyPath: m_Enabled propertyPath: m_Enabled
value: 1 value: 1
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 3752996727221814853, guid: bbdeff09fea42b34baef4d5aee1926e0,
type: 3}
propertyPath: m_LocalPosition.x
value: -0.00089
objectReference: {fileID: 0}
- target: {fileID: 3752996727221814853, guid: bbdeff09fea42b34baef4d5aee1926e0,
type: 3}
propertyPath: m_LocalPosition.y
value: 0.00124
objectReference: {fileID: 0}
- target: {fileID: 3752996727221814853, guid: bbdeff09fea42b34baef4d5aee1926e0,
type: 3}
propertyPath: m_LocalPosition.z
value: -0.00039
objectReference: {fileID: 0}
- target: {fileID: 3752996727221814853, guid: bbdeff09fea42b34baef4d5aee1926e0,
type: 3}
propertyPath: m_LocalRotation.w
value: -0.70695513
objectReference: {fileID: 0}
- target: {fileID: 3752996727221814853, guid: bbdeff09fea42b34baef4d5aee1926e0,
type: 3}
propertyPath: m_LocalRotation.x
value: -0.121901326
objectReference: {fileID: 0}
- target: {fileID: 3752996727221814853, guid: bbdeff09fea42b34baef4d5aee1926e0,
type: 3}
propertyPath: m_LocalRotation.y
value: 0.6678909
objectReference: {fileID: 0}
- target: {fileID: 3752996727221814853, guid: bbdeff09fea42b34baef4d5aee1926e0,
type: 3}
propertyPath: m_LocalRotation.z
value: 0.19818233
objectReference: {fileID: 0}
- target: {fileID: 3752996727221814853, guid: bbdeff09fea42b34baef4d5aee1926e0,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: -174.7
objectReference: {fileID: 0}
- target: {fileID: 3752996727221814853, guid: bbdeff09fea42b34baef4d5aee1926e0,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 94.5
objectReference: {fileID: 0}
- target: {fileID: 3752996727221814853, guid: bbdeff09fea42b34baef4d5aee1926e0,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 153.58
objectReference: {fileID: 0}
- target: {fileID: 4692828999669360043, guid: bbdeff09fea42b34baef4d5aee1926e0, - target: {fileID: 4692828999669360043, guid: bbdeff09fea42b34baef4d5aee1926e0,
type: 3} type: 3}
propertyPath: m_Positions.Array.data[0].x propertyPath: m_Positions.Array.data[0].x
...@@ -3305,6 +3418,11 @@ PrefabInstance: ...@@ -3305,6 +3418,11 @@ PrefabInstance:
propertyPath: _cutWire propertyPath: _cutWire
value: value:
objectReference: {fileID: 6006234447913201810} objectReference: {fileID: 6006234447913201810}
- target: {fileID: 8299607319623816837, guid: bbdeff09fea42b34baef4d5aee1926e0,
type: 3}
propertyPath: _cutPoint
value:
objectReference: {fileID: 624642539766666260}
- target: {fileID: 8299607319623816837, guid: bbdeff09fea42b34baef4d5aee1926e0, - target: {fileID: 8299607319623816837, guid: bbdeff09fea42b34baef4d5aee1926e0,
type: 3} type: 3}
propertyPath: _material propertyPath: _material
...@@ -3333,6 +3451,11 @@ PrefabInstance: ...@@ -3333,6 +3451,11 @@ PrefabInstance:
value: value:
objectReference: {fileID: 398651237619607415, guid: 27155968e33998b44a205b59d3c9bbca, objectReference: {fileID: 398651237619607415, guid: 27155968e33998b44a205b59d3c9bbca,
type: 3} type: 3}
- target: {fileID: 8597538289810706562, guid: bbdeff09fea42b34baef4d5aee1926e0,
type: 3}
propertyPath: m_Enabled
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8597538289810706562, guid: bbdeff09fea42b34baef4d5aee1926e0, - target: {fileID: 8597538289810706562, guid: bbdeff09fea42b34baef4d5aee1926e0,
type: 3} type: 3}
propertyPath: m_Materials.Array.data[0] propertyPath: m_Materials.Array.data[0]
...@@ -3399,6 +3522,12 @@ PrefabInstance: ...@@ -3399,6 +3522,12 @@ PrefabInstance:
m_AddedGameObjects: [] m_AddedGameObjects: []
m_AddedComponents: [] m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: bbdeff09fea42b34baef4d5aee1926e0, type: 3} m_SourcePrefab: {fileID: 100100000, guid: bbdeff09fea42b34baef4d5aee1926e0, type: 3}
--- !u!4 &624642539766666260 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 3752996727221814853, guid: bbdeff09fea42b34baef4d5aee1926e0,
type: 3}
m_PrefabInstance: {fileID: 4377076312731374161}
m_PrefabAsset: {fileID: 0}
--- !u!33 &720788433696069877 stripped --- !u!33 &720788433696069877 stripped
MeshFilter: MeshFilter:
m_CorrespondingSourceObject: {fileID: 3944800286380083876, guid: bbdeff09fea42b34baef4d5aee1926e0, m_CorrespondingSourceObject: {fileID: 3944800286380083876, guid: bbdeff09fea42b34baef4d5aee1926e0,
......
%YAML 1.1 %YAML 1.1
%TAG !u! tag:unity3d.com,2011: %TAG !u! tag:unity3d.com,2011:
--- !u!1 &1287823289332342664
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 3752996727221814853}
m_Layer: 0
m_Name: Cut Point
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &3752996727221814853
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1287823289332342664}
serializedVersion: 2
m_LocalRotation: {x: -0.13360643, y: 0.70922315, z: 0.19048753, w: -0.66548204}
m_LocalPosition: {x: -0.00127, y: 0.00134, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 8626780303006245093}
m_LocalEulerAnglesHint: {x: -5.3, y: 98.3, z: 151.6}
--- !u!1 &9019275256872145588 --- !u!1 &9019275256872145588
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
...@@ -34,6 +65,7 @@ Transform: ...@@ -34,6 +65,7 @@ Transform:
m_LocalScale: {x: 36.60218, y: 36.602177, z: 36.602177} m_LocalScale: {x: 36.60218, y: 36.602177, z: 36.602177}
m_ConstrainProportionsScale: 1 m_ConstrainProportionsScale: 1
m_Children: m_Children:
- {fileID: 3752996727221814853}
- {fileID: 1223967663067302533} - {fileID: 1223967663067302533}
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
...@@ -111,6 +143,7 @@ MonoBehaviour: ...@@ -111,6 +143,7 @@ MonoBehaviour:
_fadeCanvasAndLine: {fileID: 4924190921142732258} _fadeCanvasAndLine: {fileID: 4924190921142732258}
_floatingObject: {fileID: 91300033064305310} _floatingObject: {fileID: 91300033064305310}
_outlineRenderer: {fileID: 8759531601909846707} _outlineRenderer: {fileID: 8759531601909846707}
_cutPoint: {fileID: 3752996727221814853}
CorrectCutParticles: {fileID: 4286736223692924257} CorrectCutParticles: {fileID: 4286736223692924257}
WrongcutParticles: {fileID: 7528912567480112244} WrongcutParticles: {fileID: 7528912567480112244}
--- !u!114 &8759531601909846707 --- !u!114 &8759531601909846707
...@@ -193,32 +226,32 @@ PrefabInstance: ...@@ -193,32 +226,32 @@ PrefabInstance:
- target: {fileID: 3117071613802403931, guid: 39a0d4a1f4fe2a649af24d0e64bde45a, - target: {fileID: 3117071613802403931, guid: 39a0d4a1f4fe2a649af24d0e64bde45a,
type: 3} type: 3}
propertyPath: m_Positions.Array.data[0].x propertyPath: m_Positions.Array.data[0].x
value: -0.111194625 value: -28.942194
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 3117071613802403931, guid: 39a0d4a1f4fe2a649af24d0e64bde45a, - target: {fileID: 3117071613802403931, guid: 39a0d4a1f4fe2a649af24d0e64bde45a,
type: 3} type: 3}
propertyPath: m_Positions.Array.data[0].y propertyPath: m_Positions.Array.data[0].y
value: 0.013300069 value: 1.1643001
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 3117071613802403931, guid: 39a0d4a1f4fe2a649af24d0e64bde45a, - target: {fileID: 3117071613802403931, guid: 39a0d4a1f4fe2a649af24d0e64bde45a,
type: 3} type: 3}
propertyPath: m_Positions.Array.data[0].z propertyPath: m_Positions.Array.data[0].z
value: 0.024602678 value: -28.07675
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 3117071613802403931, guid: 39a0d4a1f4fe2a649af24d0e64bde45a, - target: {fileID: 3117071613802403931, guid: 39a0d4a1f4fe2a649af24d0e64bde45a,
type: 3} type: 3}
propertyPath: m_Positions.Array.data[1].x propertyPath: m_Positions.Array.data[1].x
value: -0.18135262 value: -29.012352
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 3117071613802403931, guid: 39a0d4a1f4fe2a649af24d0e64bde45a, - target: {fileID: 3117071613802403931, guid: 39a0d4a1f4fe2a649af24d0e64bde45a,
type: 3} type: 3}
propertyPath: m_Positions.Array.data[1].y propertyPath: m_Positions.Array.data[1].y
value: 0.07110119 value: 1.2221012
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 3117071613802403931, guid: 39a0d4a1f4fe2a649af24d0e64bde45a, - target: {fileID: 3117071613802403931, guid: 39a0d4a1f4fe2a649af24d0e64bde45a,
type: 3} type: 3}
propertyPath: m_Positions.Array.data[1].z propertyPath: m_Positions.Array.data[1].z
value: 0.049446106 value: -28.051907
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 3784596669894271944, guid: 39a0d4a1f4fe2a649af24d0e64bde45a, - target: {fileID: 3784596669894271944, guid: 39a0d4a1f4fe2a649af24d0e64bde45a,
type: 3} type: 3}
......
This source diff could not be displayed because it is too large. You can view the blob instead.
fileFormatVersion: 2
guid: 24f7c474839d32842aecdf1a5b091faf
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 171b9139f5eea1a4facc1ed9488bae39, type: 3}
m_Name: 1
m_EditorClassIdentifier:
questionText: "\u0645\u0627 \u0645\u0639\u0646\u0649 \u0627\u0644\u062A\u0643\u064A\u0641\u061F"
optionA: "\u062D\u0631\u0643\u0629 \u0627\u0644\u0643\u0627\u0626\u0646 \u0627\u0644\u062D\u064A "
optionB: "\u0635\u0641\u0627\u062A \u062A\u0633\u0627\u0639\u062F \u0627\u0644\u0643\u0627\u0626\u0646
\u0627\u0644\u062D\u064A \u0639\u0644\u0649 \u0627\u0644\u0628\u0642\u0627\u0621 "
optionC: " \u0646\u0645\u0648 \u0627\u0644\u0643\u0627\u0626\u0646 \u0627\u0644\u062D\u064A "
optionD: "\u062A\u0643\u0627\u062B\u0631 \u0627\u0644\u0643\u0627\u0626\u0646 \u0627\u0644\u062D\u064A"
correctAnswer: 66
timeLimit: 30
fileFormatVersion: 2
guid: c85ccb0fcc3fae94b8f81b1c77b96fec
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 171b9139f5eea1a4facc1ed9488bae39, type: 3}
m_Name: 10
m_EditorClassIdentifier:
questionText: "\u0644\u0645\u0627\u0630\u0627 \u064A\u0644\u0647\u062B \u0627\u0644\u0643\u0644\u0628\u061F"
optionA: "\u0644\u0632\u064A\u0627\u062F\u0629 \u0627\u0644\u0648\u0632\u0646"
optionB: "\u0644\u062A\u0642\u0644\u064A\u0644 \u062F\u0631\u062C\u0629 \u062D\u0631\u0627\u0631\u0629
\u0627\u0644\u062C\u0633\u0645"
optionC: "\u0644\u0644\u0646\u0648\u0645"
optionD: "\u0644\u0644\u0634\u0631\u0628"
correctAnswer: 66
timeLimit: 30
fileFormatVersion: 2
guid: 0d53ce98db4fc1949a40ec16ca8c6280
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 171b9139f5eea1a4facc1ed9488bae39, type: 3}
m_Name: 11
m_EditorClassIdentifier:
questionText: "\u0645\u0627 \u0648\u0638\u064A\u0641\u0629 \u0627\u0644\u0641\u0631\u0627\u0621
\u0627\u0644\u0643\u062B\u064A\u0641 \u0639\u0646\u062F \u0627\u0644\u062F\u0628
\u0627\u0644\u0642\u0637\u0628\u064A"
optionA: "\u0627\u0644\u0632\u064A\u0646\u0629"
optionB: "\u0627\u0644\u062A\u0645\u0648\u064A\u0647"
optionC: "\u0627\u0644\u062A\u062F\u0641\u0626\u0629"
optionD: "\u0627\u0644\u0633\u0628\u0627\u062D\u0629"
correctAnswer: 67
timeLimit: 30
fileFormatVersion: 2
guid: 6d69270f4d93f4242b3d1fcd9e702081
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 171b9139f5eea1a4facc1ed9488bae39, type: 3}
m_Name: 12
m_EditorClassIdentifier:
questionText: "\u0627\u0644\u062A\u0645\u0648\u064A\u0647 \u064A\u0633\u0627\u0639\u062F
\u0627\u0644\u062D\u064A\u0648\u0627\u0646 \u0639\u0644\u0649:"
optionA: "\u0627\u0644\u0637\u064A\u0631\u0627\u0646"
optionB: "\u0627\u0644\u0627\u062E\u062A\u0628\u0627\u0621 \u0645\u0646 \u0627\u0644\u0623\u0639\u062F\u0627\u0621"
optionC: "\u0627\u0644\u062A\u0643\u0627\u062B\u0631"
optionD: "\u0627\u0644\u0647\u062C\u0631\u0629"
correctAnswer: 66
timeLimit: 30
fileFormatVersion: 2
guid: bacc7054e938e234791a2e9408557b09
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 171b9139f5eea1a4facc1ed9488bae39, type: 3}
m_Name: 2
m_EditorClassIdentifier:
questionText: " \u0623\u064A \u0645\u0645\u0627 \u064A\u0644\u064A \u064A\u064F\u0639\u062F
\u0645\u0646 \u0627\u0644\u0627\u062D\u062A\u064A\u0627\u062C\u0627\u062A \u0627\u0644\u0623\u0633\u0627\u0633\u064A\u0629
\u0644\u0644\u0643\u0627\u0626\u0646\u0627\u062A \u0627\u0644\u062D\u064A\u0629\u061F"
optionA: " \u0627\u0644\u0637\u0639\u0627\u0645"
optionB: " \u0627\u0644\u0644\u0639\u0628"
optionC: " \u0627\u0644\u0646\u0648\u0645 \u0641\u0642\u0637 "
optionD: " \u0627\u0644\u0636\u0648\u0621 \u0641\u0642\u0637"
correctAnswer: 65
timeLimit: 30
fileFormatVersion: 2
guid: 6bebdc11d22368447bb262c6df1d607f
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 171b9139f5eea1a4facc1ed9488bae39, type: 3}
m_Name: 3
m_EditorClassIdentifier:
questionText: "\u0627\u0644\u062A\u0643\u064A\u0641 \u0627\u0644\u0630\u064A \u064A\u062E\u0635
\u0634\u0643\u0644 \u062C\u0633\u0645 \u0627\u0644\u0643\u0627\u0626\u0646 \u0627\u0644\u062D\u064A
\u064A\u064F\u0633\u0645\u0649?"
optionA: "\u062A\u0643\u064A\u0641 \u0633\u0644\u0648\u0643\u064A"
optionB: "\u062A\u0643\u064A\u0641 \u062A\u0631\u0643\u064A\u0628\u064A"
optionC: "\u062A\u0643\u064A\u0641 \u063A\u0630\u0627\u0626\u064A"
optionD: "\u062A\u0643\u064A\u0641 \u0645\u0624\u0642\u062A"
correctAnswer: 66
timeLimit: 30
fileFormatVersion: 2
guid: e0443697f951a0a4cac7892054f3c7bc
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 171b9139f5eea1a4facc1ed9488bae39, type: 3}
m_Name: 4
m_EditorClassIdentifier:
questionText: "\u0633\u0646\u0627\u0645 \u0627\u0644\u062C\u0645\u0644 \u0645\u062B\u0627\u0644
\u0639\u0644\u0649?"
optionA: "\u0643\u064A\u0641 \u0633\u0644\u0648\u0643\u064A"
optionB: "\u062A\u0643\u064A\u0641 \u062A\u0631\u0643\u064A\u0628\u064A"
optionC: "\u0647\u062C\u0631\u0629"
optionD: "\u062A\u0645\u0648\u064A\u0647"
correctAnswer: 66
timeLimit: 30
fileFormatVersion: 2
guid: 531f10560094f0443999e8d2a7f33a6b
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 171b9139f5eea1a4facc1ed9488bae39, type: 3}
m_Name: 5
m_EditorClassIdentifier:
questionText: "\u0644\u0645\u0627\u0630\u0627 \u0644\u0644\u062C\u0645\u0644 \u0623\u0642\u062F\u0627\u0645
\u0639\u0631\u064A\u0636\u0629\u061F"
optionA: "\u0644\u0644\u0633\u0628\u0627\u062D\u0629"
optionB: "\u0644\u0644\u0645\u0634\u064A \u0639\u0644\u0649 \u0627\u0644\u0631\u0645\u0644
\u062F\u0648\u0646 \u0627\u0644\u063A\u0648\u0635 \u0641\u064A\u0647"
optionC: "\u0644\u0644\u0642\u0641\u0632"
optionD: "\u0644\u0644\u062A\u0633\u0644\u0642"
correctAnswer: 66
timeLimit: 30
fileFormatVersion: 2
guid: f5091dc667aaeb6478335311843994c5
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 171b9139f5eea1a4facc1ed9488bae39, type: 3}
m_Name: 6
m_EditorClassIdentifier:
questionText: "\u0623\u064A \u0627\u0644\u062D\u064A\u0648\u0627\u0646\u0627\u062A
\u0627\u0644\u062A\u0627\u0644\u064A\u0629 \u064A\u0639\u064A\u0634 \u0641\u064A
\u0627\u0644\u0635\u062D\u0631\u0627\u0621\u061F"
optionA: "\u0627\u0644\u0628\u0637\u0631\u064A\u0642"
optionB: "\u0627\u0644\u062C\u0645\u0644"
optionC: "\u0627\u0644\u062F\u0628 \u0627\u0644\u0642\u0637\u0628\u064A "
optionD: "\u0627\u0644\u0641\u0642\u0645\u0629"
correctAnswer: 66
timeLimit: 30
fileFormatVersion: 2
guid: 10021c8b39e3f0743af86f23517f3341
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 171b9139f5eea1a4facc1ed9488bae39, type: 3}
m_Name: 7
m_EditorClassIdentifier:
questionText: "\u0645\u0627 \u0641\u0627\u0626\u062F\u0629 \u0627\u0644\u0623\u0634\u0648\u0627\u0643
\u0641\u064A \u0646\u0628\u0627\u062A\u0627\u062A \u0627\u0644\u0635\u062D\u0631\u0627\u0621\u061F"
optionA: "\u062C\u0630\u0628 \u0627\u0644\u062D\u0634\u0631\u0627\u062A"
optionB: "\u062A\u0642\u0644\u064A\u0644 \u0641\u0642\u062F \u0627\u0644\u0645\u0627\u0621"
optionC: "\u0632\u064A\u0627\u062F\u0629 \u0627\u0644\u0646\u0645\u0648"
optionD: "\u062A\u063A\u064A\u064A\u0631 \u0627\u0644\u0644\u0648\u0646"
correctAnswer: 66
timeLimit: 30
fileFormatVersion: 2
guid: ca7ed73631f0d3646946b2e16f1ffe58
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 171b9139f5eea1a4facc1ed9488bae39, type: 3}
m_Name: 8
m_EditorClassIdentifier:
questionText: "\u0627\u0644\u062A\u0643\u064A\u0641 \u0627\u0644\u0633\u0644\u0648\u0643\u064A
\u064A\u0639\u0646\u064A"
optionA: "\u062D\u062C\u0645 \u0627\u0644\u0643\u0627\u0626\u0646"
optionB: "\u0637\u0631\u064A\u0642\u0629 \u062A\u0635\u0631\u0641 \u0627\u0644\u0643\u0627\u0626\u0646
\u0627\u0644\u062D\u064A"
optionC: "\u0644\u0648\u0646 \u0627\u0644\u062C\u0644\u062F"
optionD: "\u062D\u062C\u0645 \u0627\u0644\u0643\u0627\u0626\u0646"
correctAnswer: 66
timeLimit: 30
fileFormatVersion: 2
guid: 2b35c439d7f000641a2e09053a47c1ca
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 171b9139f5eea1a4facc1ed9488bae39, type: 3}
m_Name: 9
m_EditorClassIdentifier:
questionText: "\u0647\u062C\u0631\u0629 \u0627\u0644\u0637\u064A\u0648\u0631 \u0645\u062B\u0627\u0644
\u0639\u0644\u0649"
optionA: "\u062A\u0643\u064A\u0641 \u062A\u0631\u0643\u064A\u0628\u064A"
optionB: "\u062A\u0643\u064A\u0641 \u0633\u0644\u0648\u0643\u064A"
optionC: "\u062A\u0643\u064A\u0641 \u063A\u0630\u0627\u0626\u064A"
optionD: "\u062A\u0643\u064A\u0641 \u0634\u0643\u0644\u064A"
correctAnswer: 66
timeLimit: 30
fileFormatVersion: 2
guid: dcae08cd665e8ad438208961b4df6e4f
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 82d576a89699f83438ee629073288f84, type: 3}
m_Name: Grade 4
m_EditorClassIdentifier:
questions:
- {fileID: 11400000, guid: c85ccb0fcc3fae94b8f81b1c77b96fec, type: 2}
- {fileID: 11400000, guid: 6bebdc11d22368447bb262c6df1d607f, type: 2}
- {fileID: 11400000, guid: e0443697f951a0a4cac7892054f3c7bc, type: 2}
- {fileID: 11400000, guid: 531f10560094f0443999e8d2a7f33a6b, type: 2}
- {fileID: 11400000, guid: f5091dc667aaeb6478335311843994c5, type: 2}
- {fileID: 11400000, guid: 10021c8b39e3f0743af86f23517f3341, type: 2}
- {fileID: 11400000, guid: ca7ed73631f0d3646946b2e16f1ffe58, type: 2}
- {fileID: 11400000, guid: 2b35c439d7f000641a2e09053a47c1ca, type: 2}
- {fileID: 11400000, guid: dcae08cd665e8ad438208961b4df6e4f, type: 2}
- {fileID: 11400000, guid: 0d53ce98db4fc1949a40ec16ca8c6280, type: 2}
- {fileID: 11400000, guid: 6d69270f4d93f4242b3d1fcd9e702081, type: 2}
- {fileID: 11400000, guid: bacc7054e938e234791a2e9408557b09, type: 2}
randomizeOrder: 0
fileFormatVersion: 2
guid: 8f9eec671d907094dad55ae2469a7e25
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 2fe2b5d683a847a42b39bbb892e46a85
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
...@@ -4,7 +4,6 @@ using TMPro; ...@@ -4,7 +4,6 @@ using TMPro;
using ALArcade.ArabicTMP; using ALArcade.ArabicTMP;
using System.Collections.Generic; using System.Collections.Generic;
using DG.Tweening; using DG.Tweening;
using System.Net.NetworkInformation;
public class BombController : MonoBehaviour public class BombController : MonoBehaviour
{ {
...@@ -56,6 +55,8 @@ public class BombController : MonoBehaviour ...@@ -56,6 +55,8 @@ public class BombController : MonoBehaviour
private Material _redLedMat; private Material _redLedMat;
private Material _greenLedMat; private Material _greenLedMat;
private bool _isProcessingAnswer;
public bool IsProcessingAnswer => _isProcessingAnswer;
private void Start() private void Start()
{ {
_redLedMat = _redLedRenderer.material; _redLedMat = _redLedRenderer.material;
...@@ -124,6 +125,23 @@ public class BombController : MonoBehaviour ...@@ -124,6 +125,23 @@ public class BombController : MonoBehaviour
_gameManager.OnAnswerSelected(isCorrect, false); _gameManager.OnAnswerSelected(isCorrect, false);
} }
public void OnWireSelected(Transform cutPoint, Wire wire)
{
if (_isProcessingAnswer) return; // Prevent multiple selections
_isProcessingAnswer = true;
// Disable all wires immediately
foreach (Wire w in _wires)
{
w.DisableInteraction();
}
_gameManager.MovePlier(cutPoint,2, () =>
{
wire.CutWire();
});
}
public bool GetIsAnswerd() public bool GetIsAnswerd()
{ {
return _answered; return _answered;
...@@ -194,9 +212,10 @@ public class BombController : MonoBehaviour ...@@ -194,9 +212,10 @@ public class BombController : MonoBehaviour
} }
bombClone.transform.SetParent(null); bombClone.transform.SetParent(null);
bombClone.gameObject.SetActive(true); bombClone.gameObject.SetActive(true);
Destroy(gameObject, 10);
yield return new WaitForSeconds(1f);
if (explosionEffect != null) if (explosionEffect != null)
explosionEffect.Play(); explosionEffect.Play();
Destroy(gameObject, 10);
CameraShakeNoise.instance.Shake(); CameraShakeNoise.instance.Shake();
SoundManager.Instance.PlaySound3D(EXPLOSION, transform.position); SoundManager.Instance.PlaySound3D(EXPLOSION, transform.position);
Debug.Log("explosion"); Debug.Log("explosion");
...@@ -227,17 +246,6 @@ public class BombController : MonoBehaviour ...@@ -227,17 +246,6 @@ public class BombController : MonoBehaviour
yield return new WaitForSeconds(currentInterval * 0.7f); yield return new WaitForSeconds(currentInterval * 0.7f);
} }
} }
private Wire GetAnswerdWire(char answered)
{
foreach (Wire wire in _wires)
{
if(wire.WireAnswer == answered)
{
return wire;
}
}
return null;
}
private void OnDestroy() private void OnDestroy()
{ {
......
...@@ -6,6 +6,7 @@ using DG.Tweening; ...@@ -6,6 +6,7 @@ using DG.Tweening;
using UnityEngine.Events; using UnityEngine.Events;
using ALArcade.ArabicTMP; using ALArcade.ArabicTMP;
using System.Linq; using System.Linq;
using System;
public class GameManager : MonoBehaviour public class GameManager : MonoBehaviour
{ {
...@@ -37,7 +38,12 @@ public class GameManager : MonoBehaviour ...@@ -37,7 +38,12 @@ public class GameManager : MonoBehaviour
[SerializeField] private GameObject _pliers; [SerializeField] private GameObject _pliers;
[SerializeField] private Transform _pliersStartPos; [SerializeField] private Transform _pliersStartPos;
[SerializeField] private Transform _currentCutPos; [SerializeField] private SkinnedMeshRenderer _skinnedMeshRenderer;
[Header("Pliers Animation")]
[SerializeField] private float squeezeDuration = 0.3f;
[SerializeField] private float squeezeHoldDuration = 0.2f;
[SerializeField] private float returnDuration = 0.5f;
void Start() void Start()
{ {
...@@ -46,6 +52,10 @@ public class GameManager : MonoBehaviour ...@@ -46,6 +52,10 @@ public class GameManager : MonoBehaviour
Debug.LogError("Question Set is not assigned!"); Debug.LogError("Question Set is not assigned!");
return; return;
} }
if (_skinnedMeshRenderer != null)
{
_skinnedMeshRenderer.SetBlendShapeWeight(0, 0f);
}
} }
public IEnumerator StartGameDelay() public IEnumerator StartGameDelay()
{ {
...@@ -91,11 +101,73 @@ public class GameManager : MonoBehaviour ...@@ -91,11 +101,73 @@ public class GameManager : MonoBehaviour
currentBomb.StartVisuals(); currentBomb.StartVisuals();
} }
public void MovePlier(Transform cutPos , float duration) public void MovePlier(Transform cutPos, float duration, Action onComplete)
{
DOTween.Kill(_pliers.transform);
_pliers.transform.DOMove(cutPos.position, duration)
.SetEase(Ease.InOutSine);
_pliers.transform.DORotateQuaternion(cutPos.rotation, duration)
.SetEase(Ease.InOutSine)
.OnComplete(() =>
{
StartCoroutine(CutWireSequence(onComplete, duration));
});
}
private IEnumerator CutWireSequence(Action onComplete, float returnDuration)
{
yield return StartCoroutine(AnimateBlendShape(0f, 100f, squeezeDuration, Ease.InQuad));
yield return new WaitForSeconds(squeezeHoldDuration);
onComplete?.Invoke();
yield return new WaitForSeconds(0.1f);
yield return StartCoroutine(AnimateBlendShape(100f, 0f, squeezeDuration * 0.5f, Ease.OutQuad));
yield return new WaitForSeconds(0.2f);
ReturnPliersToStart(returnDuration);
}
private IEnumerator AnimateBlendShape(float fromWeight, float toWeight, float duration, Ease ease)
{ {
_pliers.transform.DOMove(cutPos.position, duration).SetEase(Ease.InOutSine); if (_skinnedMeshRenderer == null)
_pliers.transform.DORotateQuaternion(cutPos.rotation, duration).SetEase(Ease.InOutSine); {
Debug.LogWarning("SkinnedMeshRenderer not assigned!");
yield break;
}
float elapsed = 0f;
while (elapsed < duration)
{
elapsed += Time.deltaTime;
float t = elapsed / duration;
float easedT = DOVirtual.EasedValue(0f, 1f, t, ease);
float currentWeight = Mathf.Lerp(fromWeight, toWeight, easedT);
_skinnedMeshRenderer.SetBlendShapeWeight(0, currentWeight);
yield return null;
}
_skinnedMeshRenderer.SetBlendShapeWeight(0, toWeight);
}
private void ReturnPliersToStart(float duration)
{
if (_pliers == null || _pliersStartPos == null) return;
_pliers.transform.DOMove(_pliersStartPos.position, duration)
.SetEase(Ease.InOutSine);
_pliers.transform.DORotateQuaternion(_pliersStartPos.rotation, duration)
.SetEase(Ease.InOutSine);
} }
public void OnAnswerSelected(bool isCorrect, bool isTimeout) public void OnAnswerSelected(bool isCorrect, bool isTimeout)
{ {
......
...@@ -19,6 +19,7 @@ public class Wire : MonoBehaviour ...@@ -19,6 +19,7 @@ public class Wire : MonoBehaviour
[SerializeField] private FadeCanvasAndLine _fadeCanvasAndLine; [SerializeField] private FadeCanvasAndLine _fadeCanvasAndLine;
[SerializeField] private FloatingObject _floatingObject; [SerializeField] private FloatingObject _floatingObject;
[SerializeField] private OutlineRenderer _outlineRenderer; [SerializeField] private OutlineRenderer _outlineRenderer;
[SerializeField] private Transform _cutPoint;
[Header("Cut Effect")] [Header("Cut Effect")]
[SerializeField] private ParticleSystem CorrectCutParticles; [SerializeField] private ParticleSystem CorrectCutParticles;
...@@ -78,9 +79,9 @@ public class Wire : MonoBehaviour ...@@ -78,9 +79,9 @@ public class Wire : MonoBehaviour
void OnMouseDown() void OnMouseDown()
{ {
if (!_isCut && _clikable) if (!_isCut && _clikable && !_bombController.IsProcessingAnswer)
{ {
CutWire(); WireSelected();
} }
} }
...@@ -98,12 +99,8 @@ public class Wire : MonoBehaviour ...@@ -98,12 +99,8 @@ public class Wire : MonoBehaviour
_floatingObject.PauseFloating(); _floatingObject.PauseFloating();
} }
void CutWire() public void CutWire()
{ {
if(_bombController.GetIsAnswerd()) return;
Debug.Log("Cut");
_isCut = true;
// Visual feedback - change material // Visual feedback - change material
_meshRender.enabled = false; _meshRender.enabled = false;
_cutWire.SetActive(true); _cutWire.SetActive(true);
...@@ -115,4 +112,15 @@ public class Wire : MonoBehaviour ...@@ -115,4 +112,15 @@ public class Wire : MonoBehaviour
// Notify bomb controller // Notify bomb controller
_bombController.OnWireClicked(_wireAnswer); _bombController.OnWireClicked(_wireAnswer);
} }
public void DisableInteraction()
{
_clikable = false;
}
public void WireSelected()
{
if (_bombController.GetIsAnswerd()) return;
_isCut = true;
_bombController.OnWireSelected(_cutPoint, this);
}
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment