Commit 40f8384c authored by saad's avatar saad

add Pliers anim

parent 1b1592b9
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
%YAML 1.1
%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
GameObject:
m_ObjectHideFlags: 0
......@@ -34,6 +65,7 @@ Transform:
m_LocalScale: {x: 36.60218, y: 36.602177, z: 36.602177}
m_ConstrainProportionsScale: 1
m_Children:
- {fileID: 3752996727221814853}
- {fileID: 1223967663067302533}
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
......@@ -111,6 +143,7 @@ MonoBehaviour:
_fadeCanvasAndLine: {fileID: 4924190921142732258}
_floatingObject: {fileID: 91300033064305310}
_outlineRenderer: {fileID: 8759531601909846707}
_cutPoint: {fileID: 3752996727221814853}
CorrectCutParticles: {fileID: 4286736223692924257}
WrongcutParticles: {fileID: 7528912567480112244}
--- !u!114 &8759531601909846707
......@@ -193,32 +226,32 @@ PrefabInstance:
- target: {fileID: 3117071613802403931, guid: 39a0d4a1f4fe2a649af24d0e64bde45a,
type: 3}
propertyPath: m_Positions.Array.data[0].x
value: -0.111194625
value: -28.942194
objectReference: {fileID: 0}
- target: {fileID: 3117071613802403931, guid: 39a0d4a1f4fe2a649af24d0e64bde45a,
type: 3}
propertyPath: m_Positions.Array.data[0].y
value: 0.013300069
value: 1.1643001
objectReference: {fileID: 0}
- target: {fileID: 3117071613802403931, guid: 39a0d4a1f4fe2a649af24d0e64bde45a,
type: 3}
propertyPath: m_Positions.Array.data[0].z
value: 0.024602678
value: -28.07675
objectReference: {fileID: 0}
- target: {fileID: 3117071613802403931, guid: 39a0d4a1f4fe2a649af24d0e64bde45a,
type: 3}
propertyPath: m_Positions.Array.data[1].x
value: -0.18135262
value: -29.012352
objectReference: {fileID: 0}
- target: {fileID: 3117071613802403931, guid: 39a0d4a1f4fe2a649af24d0e64bde45a,
type: 3}
propertyPath: m_Positions.Array.data[1].y
value: 0.07110119
value: 1.2221012
objectReference: {fileID: 0}
- target: {fileID: 3117071613802403931, guid: 39a0d4a1f4fe2a649af24d0e64bde45a,
type: 3}
propertyPath: m_Positions.Array.data[1].z
value: 0.049446106
value: -28.051907
objectReference: {fileID: 0}
- target: {fileID: 3784596669894271944, guid: 39a0d4a1f4fe2a649af24d0e64bde45a,
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;
using ALArcade.ArabicTMP;
using System.Collections.Generic;
using DG.Tweening;
using System.Net.NetworkInformation;
public class BombController : MonoBehaviour
{
......@@ -56,6 +55,8 @@ public class BombController : MonoBehaviour
private Material _redLedMat;
private Material _greenLedMat;
private bool _isProcessingAnswer;
public bool IsProcessingAnswer => _isProcessingAnswer;
private void Start()
{
_redLedMat = _redLedRenderer.material;
......@@ -124,6 +125,23 @@ public class BombController : MonoBehaviour
_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()
{
return _answered;
......@@ -194,9 +212,10 @@ public class BombController : MonoBehaviour
}
bombClone.transform.SetParent(null);
bombClone.gameObject.SetActive(true);
Destroy(gameObject, 10);
yield return new WaitForSeconds(1f);
if (explosionEffect != null)
explosionEffect.Play();
Destroy(gameObject, 10);
CameraShakeNoise.instance.Shake();
SoundManager.Instance.PlaySound3D(EXPLOSION, transform.position);
Debug.Log("explosion");
......@@ -227,17 +246,6 @@ public class BombController : MonoBehaviour
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()
{
......
......@@ -6,6 +6,7 @@ using DG.Tweening;
using UnityEngine.Events;
using ALArcade.ArabicTMP;
using System.Linq;
using System;
public class GameManager : MonoBehaviour
{
......@@ -37,7 +38,12 @@ public class GameManager : MonoBehaviour
[SerializeField] private GameObject _pliers;
[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()
{
......@@ -46,6 +52,10 @@ public class GameManager : MonoBehaviour
Debug.LogError("Question Set is not assigned!");
return;
}
if (_skinnedMeshRenderer != null)
{
_skinnedMeshRenderer.SetBlendShapeWeight(0, 0f);
}
}
public IEnumerator StartGameDelay()
{
......@@ -91,12 +101,74 @@ public class GameManager : MonoBehaviour
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)
{
if (_skinnedMeshRenderer == null)
{
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)
{
_pliers.transform.DOMove(cutPos.position, duration).SetEase(Ease.InOutSine);
_pliers.transform.DORotateQuaternion(cutPos.rotation, duration).SetEase(Ease.InOutSine);
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)
{
if (isTimeout)
......
......@@ -19,6 +19,7 @@ public class Wire : MonoBehaviour
[SerializeField] private FadeCanvasAndLine _fadeCanvasAndLine;
[SerializeField] private FloatingObject _floatingObject;
[SerializeField] private OutlineRenderer _outlineRenderer;
[SerializeField] private Transform _cutPoint;
[Header("Cut Effect")]
[SerializeField] private ParticleSystem CorrectCutParticles;
......@@ -78,9 +79,9 @@ public class Wire : MonoBehaviour
void OnMouseDown()
{
if (!_isCut && _clikable)
if (!_isCut && _clikable && !_bombController.IsProcessingAnswer)
{
CutWire();
WireSelected();
}
}
......@@ -98,12 +99,8 @@ public class Wire : MonoBehaviour
_floatingObject.PauseFloating();
}
void CutWire()
public void CutWire()
{
if(_bombController.GetIsAnswerd()) return;
Debug.Log("Cut");
_isCut = true;
// Visual feedback - change material
_meshRender.enabled = false;
_cutWire.SetActive(true);
......@@ -115,4 +112,15 @@ public class Wire : MonoBehaviour
// Notify bomb controller
_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