Skip to content
Snippets Groups Projects
Commit 26e60b2a authored by EICHHORN LEO's avatar EICHHORN LEO
Browse files
parents 2fdbab13 c78ef69f
Branches
No related merge requests found
Showing
with 3503 additions and 92 deletions
......@@ -37,7 +37,8 @@ AnimatorState:
m_Name: BreakableGlassRepair
m_Speed: 1
m_CycleOffset: 0
m_Transitions: []
m_Transitions:
- {fileID: 5151527202941354501}
m_StateMachineBehaviours: []
m_Position: {x: 50, y: 50, z: 0}
m_IKOnFeet: 0
......@@ -68,6 +69,12 @@ AnimatorController:
m_DefaultInt: 0
m_DefaultBool: 0
m_Controller: {fileID: 0}
- m_Name: GlassBroken
m_Type: 9
m_DefaultFloat: 0
m_DefaultInt: 0
m_DefaultBool: 0
m_Controller: {fileID: 0}
m_AnimatorLayers:
- serializedVersion: 5
m_Name: Base Layer
......@@ -106,6 +113,31 @@ AnimatorStateTransition:
m_InterruptionSource: 0
m_OrderedInterruption: 1
m_CanTransitionToSelf: 1
--- !u!1101 &5151527202941354501
AnimatorStateTransition:
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name:
m_Conditions:
- m_ConditionMode: 1
m_ConditionEvent: GlassBroken
m_EventTreshold: 0
m_DstStateMachine: {fileID: 0}
m_DstState: {fileID: -6347208988039225033}
m_Solo: 0
m_Mute: 0
m_IsExit: 0
serializedVersion: 3
m_TransitionDuration: 0.25
m_TransitionOffset: 0
m_ExitTime: 0.75
m_HasExitTime: 1
m_HasFixedDuration: 1
m_InterruptionSource: 0
m_OrderedInterruption: 1
m_CanTransitionToSelf: 1
--- !u!1107 &6344820973711376217
AnimatorStateMachine:
serializedVersion: 6
......@@ -120,7 +152,7 @@ AnimatorStateMachine:
m_Position: {x: 370, y: 220, z: 0}
- serializedVersion: 1
m_State: {fileID: -2918479436179246495}
m_Position: {x: 380, y: 70, z: 0}
m_Position: {x: 370, y: 70, z: 0}
m_ChildStateMachines: []
m_AnyStateTransitions: []
m_EntryTransitions: []
......@@ -130,4 +162,4 @@ AnimatorStateMachine:
m_EntryPosition: {x: 60, y: 230, z: 0}
m_ExitPosition: {x: 800, y: 120, z: 0}
m_ParentStateMachinePosition: {x: 800, y: 20, z: 0}
m_DefaultState: {fileID: -6347208988039225033}
m_DefaultState: {fileID: -2918479436179246495}
fileFormatVersion: 2
guid: f14c57ff36f24614aa6da499db009210
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
This source diff could not be displayed because it is too large. You can view the blob instead.
fileFormatVersion: 2
guid: 58482af160fd66043b49834302e9ff13
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
File added
fileFormatVersion: 2
guid: cf707370595a0a64a956dfaeb426241c
TrueTypeFontImporter:
externalObjects: {}
serializedVersion: 4
fontSize: 16
forceTextureCase: -2
characterSpacing: 0
characterPadding: 1
includeFontData: 1
fontNames:
- October Crow
fallbackFontReferences: []
customCharacters:
fontRenderingMode: 0
ascentCalculationMode: 1
useLegacyBoundsCalculation: 0
shouldRoundAdvanceValue: 1
userData:
assetBundleName:
assetBundleVariant:
......@@ -428,6 +428,18 @@ Animator:
m_HasTransformHierarchy: 1
m_AllowConstantClipSamplingOptimization: 1
m_KeepAnimatorControllerStateOnDisable: 0
--- !u!114 &1804400840887879968
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 9025298878336501413}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 7df3bad16203b6a4f8530d91425ed156, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!114 &8992492662898214144
MonoBehaviour:
m_ObjectHideFlags: 0
......@@ -440,6 +452,20 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: d82221acfada04e479022c5ef70827d1, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!114 &3800862170949192963
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 9025298878336501413}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 08ef00bf9909b8f4c95945cecfbb2984, type: 3}
m_Name:
m_EditorClassIdentifier:
task: "R\xE9parer la serre"
location: Serre
--- !u!4 &9025298878336736699 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 428906, guid: a5cd29a93d7ae2d488fa0376d0d08462, type: 3}
......
File added
fileFormatVersion: 2
guid: 2db7412d9caf086459db5308c9bcf16f
ModelImporter:
serializedVersion: 21300
internalIDToNameTable: []
externalObjects: {}
materials:
materialImportMode: 2
materialName: 0
materialSearch: 1
materialLocation: 1
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
resampleCurves: 1
optimizeGameObjects: 0
removeConstantScaleCurves: 1
motionNodeName:
rigImportErrors:
rigImportWarnings:
animationImportErrors:
animationImportWarnings:
animationRetargetingWarnings:
animationDoRetargetingWarnings: 0
importAnimatedCustomProperties: 0
importConstraints: 0
animationCompression: 1
animationRotationError: 0.5
animationPositionError: 0.5
animationScaleError: 0.5
animationWrapMode: 0
extraExposedTransformPaths: []
extraUserProperties: []
clipAnimations: []
isReadable: 0
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 0
useSRGBMaterialColor: 1
sortHierarchyByName: 1
importVisibility: 1
importBlendShapes: 1
importCameras: 1
importLights: 1
nodeNameCollisionStrategy: 1
fileIdsGeneration: 2
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
keepQuads: 0
weldVertices: 1
bakeAxisConversion: 0
preserveHierarchy: 0
skinWeightsMode: 0
maxBonesPerVertex: 4
minBoneWeight: 0.001
optimizeBones: 1
meshOptimizationFlags: -1
indexFormat: 0
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVMarginMethod: 1
secondaryUVMinLightmapResolution: 40
secondaryUVMinObjectScale: 1
secondaryUVPackMargin: 4
useFileScale: 1
tangentSpace:
normalSmoothAngle: 60
normalImportMode: 0
tangentImportMode: 3
normalCalculationMode: 4
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
blendShapeNormalImportMode: 1
normalSmoothingSource: 0
referencedClips: []
importAnimation: 1
humanDescription:
serializedVersion: 3
human: []
skeleton: []
armTwist: 0.5
foreArmTwist: 0.5
upperLegTwist: 0.5
legTwist: 0.5
armStretch: 0.05
legStretch: 0.05
feetSpacing: 0
globalScale: 1
rootMotionBoneName:
hasTranslationDoF: 0
hasExtraRoot: 0
skeletonHasParents: 1
lastHumanDescriptionAvatarSource: {instanceID: 0}
autoGenerateAvatarMappingIfUnspecified: 1
animationType: 2
humanoidOversampling: 1
avatarSetup: 0
addHumanoidExtraRootOnlyWhenUsingAvatar: 1
remapMaterialsIfMaterialImportModeIsNone: 0
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:
......@@ -1106,6 +1106,7 @@ Transform:
- {fileID: 6086106104159433891}
- {fileID: 3102256713279593931}
- {fileID: 5002280951274396605}
- {fileID: 8437222463087227183}
m_Father: {fileID: 1830644942908338429}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
......@@ -2194,6 +2195,178 @@ Transform:
m_Father: {fileID: 242761284217350084}
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &5288028989350870307
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 8437222463087227183}
- component: {fileID: 7218430231281024335}
- component: {fileID: 2765622522560143650}
m_Layer: 0
m_Name: Text (TMP)
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &8437222463087227183
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5288028989350870307}
m_LocalRotation: {x: 1.8189896e-12, y: 2.3283067e-10, z: 0.08339674, w: 0.9965164}
m_LocalPosition: {x: 0, y: 0, z: 15.851}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 5112982755309834540}
m_RootOrder: 5
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 9.568}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 10.332, y: -1.151}
m_SizeDelta: {x: 20, y: 5}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!23 &7218430231281024335
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5288028989350870307}
m_Enabled: 1
m_CastShadows: 0
m_ReceiveShadows: 0
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: 8606485299999336058, guid: 58482af160fd66043b49834302e9ff13, 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!114 &2765622522560143650
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5288028989350870307}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 9541d86e2fd84c1d9990edf0852d74ab, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text: The cake is a lie
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 58482af160fd66043b49834302e9ff13, type: 2}
m_sharedMaterial: {fileID: 8606485299999336058, guid: 58482af160fd66043b49834302e9ff13, type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
m_fontMaterials: []
m_fontColor32:
serializedVersion: 2
rgba: 4278190080
m_fontColor: {r: 0, g: 0, b: 0, a: 1}
m_enableVertexGradient: 0
m_colorMode: 3
m_fontColorGradient:
topLeft: {r: 1, g: 1, b: 1, a: 1}
topRight: {r: 1, g: 1, b: 1, a: 1}
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
bottomRight: {r: 1, g: 1, b: 1, a: 1}
m_fontColorGradientPreset: {fileID: 0}
m_spriteAsset: {fileID: 0}
m_tintAllSprites: 0
m_StyleSheet: {fileID: 0}
m_TextStyleHashCode: -1183493901
m_overrideHtmlColors: 0
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 3
m_fontSizeBase: 3
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
m_fontSizeMax: 72
m_fontStyle: 0
m_HorizontalAlignment: 1
m_VerticalAlignment: 256
m_textAlignment: 65535
m_characterSpacing: 0
m_wordSpacing: 0
m_lineSpacing: 0
m_lineSpacingMax: 0
m_paragraphSpacing: 0
m_charWidthMaxAdj: 0
m_enableWordWrapping: 1
m_wordWrappingRatios: 0.4
m_overflowMode: 0
m_linkedTextComponent: {fileID: 0}
parentLinkedComponent: {fileID: 0}
m_enableKerning: 1
m_enableExtraPadding: 0
checkPaddingRequired: 0
m_isRichText: 1
m_parseCtrlCharacters: 1
m_isOrthographic: 0
m_isCullingEnabled: 0
m_horizontalMapping: 0
m_verticalMapping: 0
m_uvLineOffset: 0
m_geometrySortingOrder: 0
m_IsTextObjectScaleStatic: 0
m_VertexBufferAutoSizeReduction: 0
m_useMaxVisibleDescender: 1
m_pageToDisplay: 1
m_margin: {x: 8.350326, y: 0.2100954, z: 9.3404, w: 4.379943}
m_isUsingLegacyAnimationComponent: 0
m_isVolumetricText: 0
_SortingLayer: 0
_SortingLayerID: 0
_SortingOrder: 0
m_hasFontAssetChanged: 0
m_renderer: {fileID: 7218430231281024335}
m_maskType: 0
--- !u!1 &5408435974017238381
GameObject:
m_ObjectHideFlags: 0
......@@ -2620,8 +2793,8 @@ Transform:
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 3090960592840140365}
- {fileID: 5563660788799506312}
- {fileID: 2065078262552996826}
- {fileID: 3569037324223347565}
- {fileID: 5944265689393854682}
- {fileID: 211966346238454295}
......@@ -2713,6 +2886,8 @@ Transform:
- {fileID: 2196234211184861852}
- {fileID: 4165196045671381821}
- {fileID: 2289197124761806890}
- {fileID: 5967082374527359591}
- {fileID: 5238425723504521848}
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
......@@ -9223,72 +9398,6 @@ Transform:
m_CorrespondingSourceObject: {fileID: 5721615037810485184, guid: 40effc4c134d6d344bf73d385fe01ce1, type: 3}
m_PrefabInstance: {fileID: 1987336904054504748}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &2065078262553176022
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 5143368942493631915}
m_Modifications:
- target: {fileID: 153876, guid: 14f2f01264616214ba79f88c8f46c15f, type: 3}
propertyPath: m_Name
value: desk
objectReference: {fileID: 0}
- target: {fileID: 153876, guid: 14f2f01264616214ba79f88c8f46c15f, type: 3}
propertyPath: m_StaticEditorFlags
value: 2147483647
objectReference: {fileID: 0}
- target: {fileID: 445452, guid: 14f2f01264616214ba79f88c8f46c15f, type: 3}
propertyPath: m_RootOrder
value: 1
objectReference: {fileID: 0}
- target: {fileID: 445452, guid: 14f2f01264616214ba79f88c8f46c15f, type: 3}
propertyPath: m_LocalPosition.x
value: 9.714
objectReference: {fileID: 0}
- target: {fileID: 445452, guid: 14f2f01264616214ba79f88c8f46c15f, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 445452, guid: 14f2f01264616214ba79f88c8f46c15f, type: 3}
propertyPath: m_LocalPosition.z
value: 1.015
objectReference: {fileID: 0}
- target: {fileID: 445452, guid: 14f2f01264616214ba79f88c8f46c15f, type: 3}
propertyPath: m_LocalRotation.w
value: 0.9597335
objectReference: {fileID: 0}
- target: {fileID: 445452, guid: 14f2f01264616214ba79f88c8f46c15f, type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: 445452, guid: 14f2f01264616214ba79f88c8f46c15f, type: 3}
propertyPath: m_LocalRotation.y
value: 0.28091222
objectReference: {fileID: 0}
- target: {fileID: 445452, guid: 14f2f01264616214ba79f88c8f46c15f, type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: 445452, guid: 14f2f01264616214ba79f88c8f46c15f, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 445452, guid: 14f2f01264616214ba79f88c8f46c15f, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 32.629
objectReference: {fileID: 0}
- target: {fileID: 445452, guid: 14f2f01264616214ba79f88c8f46c15f, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 14f2f01264616214ba79f88c8f46c15f, type: 3}
--- !u!4 &2065078262552996826 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 445452, guid: 14f2f01264616214ba79f88c8f46c15f, type: 3}
m_PrefabInstance: {fileID: 2065078262553176022}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &2073760059602137232
PrefabInstance:
m_ObjectHideFlags: 0
......@@ -12814,6 +12923,76 @@ Transform:
m_CorrespondingSourceObject: {fileID: 413614, guid: e37a5396a520a8e4e8e48c74975b6a61, type: 3}
m_PrefabInstance: {fileID: 3059477666609502116}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &3090960592839731777
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 5143368942493631915}
m_Modifications:
- target: {fileID: 153876, guid: 46b4a6d1f34c0b2b080e60d07dac1000, type: 3}
propertyPath: m_Name
value: Simon Say
objectReference: {fileID: 0}
- target: {fileID: 445452, guid: 46b4a6d1f34c0b2b080e60d07dac1000, type: 3}
propertyPath: m_RootOrder
value: 0
objectReference: {fileID: 0}
- target: {fileID: 445452, guid: 46b4a6d1f34c0b2b080e60d07dac1000, type: 3}
propertyPath: m_LocalPosition.x
value: 9.714
objectReference: {fileID: 0}
- target: {fileID: 445452, guid: 46b4a6d1f34c0b2b080e60d07dac1000, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 445452, guid: 46b4a6d1f34c0b2b080e60d07dac1000, type: 3}
propertyPath: m_LocalPosition.z
value: 1.015
objectReference: {fileID: 0}
- target: {fileID: 445452, guid: 46b4a6d1f34c0b2b080e60d07dac1000, type: 3}
propertyPath: m_LocalRotation.w
value: 0.95973426
objectReference: {fileID: 0}
- target: {fileID: 445452, guid: 46b4a6d1f34c0b2b080e60d07dac1000, type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 445452, guid: 46b4a6d1f34c0b2b080e60d07dac1000, type: 3}
propertyPath: m_LocalRotation.y
value: 0.28090954
objectReference: {fileID: 0}
- target: {fileID: 445452, guid: 46b4a6d1f34c0b2b080e60d07dac1000, type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 445452, guid: 46b4a6d1f34c0b2b080e60d07dac1000, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 445452, guid: 46b4a6d1f34c0b2b080e60d07dac1000, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 32.629
objectReference: {fileID: 0}
- target: {fileID: 445452, guid: 46b4a6d1f34c0b2b080e60d07dac1000, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 784747489321478113, guid: 46b4a6d1f34c0b2b080e60d07dac1000, type: 3}
propertyPath: task
value: "R\xE9alisez la s\xE9quence"
objectReference: {fileID: 0}
- target: {fileID: 784747489321478113, guid: 46b4a6d1f34c0b2b080e60d07dac1000, type: 3}
propertyPath: location
value: Lab
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 46b4a6d1f34c0b2b080e60d07dac1000, type: 3}
--- !u!4 &3090960592840140365 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 445452, guid: 46b4a6d1f34c0b2b080e60d07dac1000, type: 3}
m_PrefabInstance: {fileID: 3090960592839731777}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &3168603341234191413
PrefabInstance:
m_ObjectHideFlags: 0
......@@ -12949,6 +13128,24 @@ PrefabInstance:
objectReference: {fileID: 2100000, guid: 10de6384af0c3b54e8166f9c3f936e88, type: 2}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 49147130b2b7fa449bbe4566bde06e1d, type: 3}
--- !u!1 &3175549207327768194 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 100000, guid: 49147130b2b7fa449bbe4566bde06e1d, type: 3}
m_PrefabInstance: {fileID: 3175549207327733794}
m_PrefabAsset: {fileID: 0}
--- !u!65 &479693558753368734
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3175549207327768194}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 1
serializedVersion: 2
m_Size: {x: 4.0000005, y: 4.000001, z: 0.41957232}
m_Center: {x: -0.00000047685825, y: 2, z: 0.04501514}
--- !u!4 &3175549207327859362 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 400000, guid: 49147130b2b7fa449bbe4566bde06e1d, type: 3}
......@@ -18757,6 +18954,10 @@ PrefabInstance:
propertyPath: m_Name
value: pizza
objectReference: {fileID: 0}
- target: {fileID: 919132149155446097, guid: 0237a2cb93d223a4aad5e45d098bbaaa, type: 3}
propertyPath: m_Layer
value: 6
objectReference: {fileID: 0}
- target: {fileID: 919132149155446097, guid: 0237a2cb93d223a4aad5e45d098bbaaa, type: 3}
propertyPath: m_StaticEditorFlags
value: 0
......@@ -19681,7 +19882,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 493122, guid: 9050f6c8a29d61f49ac1b3052875c968, type: 3}
propertyPath: m_RootOrder
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 493122, guid: 9050f6c8a29d61f49ac1b3052875c968, type: 3}
propertyPath: m_LocalPosition.x
......@@ -20318,6 +20519,130 @@ Transform:
m_CorrespondingSourceObject: {fileID: 463376, guid: e15828603e27c5e42b39860e4f55da70, type: 3}
m_PrefabInstance: {fileID: 5655556033600037385}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &5708340073758201235
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 1830644942908338429}
m_Modifications:
- target: {fileID: -8679921383154817045, guid: 2db7412d9caf086459db5308c9bcf16f, type: 3}
propertyPath: m_RootOrder
value: 11
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2db7412d9caf086459db5308c9bcf16f, type: 3}
propertyPath: m_LocalScale.x
value: 0.1
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2db7412d9caf086459db5308c9bcf16f, type: 3}
propertyPath: m_LocalScale.y
value: 0.1
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2db7412d9caf086459db5308c9bcf16f, type: 3}
propertyPath: m_LocalScale.z
value: 0.1
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2db7412d9caf086459db5308c9bcf16f, type: 3}
propertyPath: m_LocalPosition.x
value: 9.733
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2db7412d9caf086459db5308c9bcf16f, type: 3}
propertyPath: m_LocalPosition.y
value: 1.111
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2db7412d9caf086459db5308c9bcf16f, type: 3}
propertyPath: m_LocalPosition.z
value: 19.426
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2db7412d9caf086459db5308c9bcf16f, type: 3}
propertyPath: m_LocalRotation.w
value: 0.9999733
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2db7412d9caf086459db5308c9bcf16f, type: 3}
propertyPath: m_LocalRotation.x
value: -0.000021745187
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2db7412d9caf086459db5308c9bcf16f, type: 3}
propertyPath: m_LocalRotation.y
value: -0.003365149
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2db7412d9caf086459db5308c9bcf16f, type: 3}
propertyPath: m_LocalRotation.z
value: 0.0064859116
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2db7412d9caf086459db5308c9bcf16f, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2db7412d9caf086459db5308c9bcf16f, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2db7412d9caf086459db5308c9bcf16f, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 919132149155446097, guid: 2db7412d9caf086459db5308c9bcf16f, type: 3}
propertyPath: m_Name
value: Companion Cube
objectReference: {fileID: 0}
- target: {fileID: 919132149155446097, guid: 2db7412d9caf086459db5308c9bcf16f, type: 3}
propertyPath: m_Layer
value: 6
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 2db7412d9caf086459db5308c9bcf16f, type: 3}
--- !u!1 &4898070161907591362 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 919132149155446097, guid: 2db7412d9caf086459db5308c9bcf16f, type: 3}
m_PrefabInstance: {fileID: 5708340073758201235}
m_PrefabAsset: {fileID: 0}
--- !u!54 &6799803941711779181
Rigidbody:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4898070161907591362}
serializedVersion: 2
m_Mass: 1
m_Drag: 0
m_AngularDrag: 0.05
m_UseGravity: 1
m_IsKinematic: 0
m_Interpolate: 0
m_Constraints: 0
m_CollisionDetection: 0
--- !u!65 &6849704258318087609
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4898070161907591362}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 1
serializedVersion: 2
m_Size: {x: 13.722251, y: 14.197866, z: 13.871399}
m_Center: {x: -1.5395439e-15, y: -1.338215e-10, z: 6.341304}
--- !u!114 &4091107979337855862
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4898070161907591362}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4acf37e0a57dd8803900614ec32ff2a6, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!4 &5238425723504521848 stripped
Transform:
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 2db7412d9caf086459db5308c9bcf16f, type: 3}
m_PrefabInstance: {fileID: 5708340073758201235}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &5711156987405756195
PrefabInstance:
m_ObjectHideFlags: 0
......@@ -21366,6 +21691,10 @@ PrefabInstance:
m_Modification:
m_TransformParent: {fileID: 8535902751792838402}
m_Modifications:
- target: {fileID: 6553025885229125705, guid: 08c1031050f3bd54bb9ae79a39b0e0aa, type: 3}
propertyPath: _console
value:
objectReference: {fileID: 8452340521173802950}
- target: {fileID: 7550749944775378032, guid: 08c1031050f3bd54bb9ae79a39b0e0aa, type: 3}
propertyPath: m_RootOrder
value: 9
......@@ -21421,6 +21750,11 @@ Transform:
m_CorrespondingSourceObject: {fileID: 7550749944775378032, guid: 08c1031050f3bd54bb9ae79a39b0e0aa, type: 3}
m_PrefabInstance: {fileID: 5963600469199860505}
m_PrefabAsset: {fileID: 0}
--- !u!1 &8452340521173802950 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 2850296893478989023, guid: 08c1031050f3bd54bb9ae79a39b0e0aa, type: 3}
m_PrefabInstance: {fileID: 5963600469199860505}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &5973302294400604106
PrefabInstance:
m_ObjectHideFlags: 0
......@@ -21874,6 +22208,99 @@ Transform:
m_CorrespondingSourceObject: {fileID: 5254064774991747038, guid: e87c3fb7c927a6b4aaa70e50226c3b11, type: 3}
m_PrefabInstance: {fileID: 6124672795028875345}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &6144577509449006476
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 1830644942908338429}
m_Modifications:
- target: {fileID: -8679921383154817045, guid: a67c4eaad74e5c04ebf43a13f54bc13d, type: 3}
propertyPath: m_RootOrder
value: 10
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: a67c4eaad74e5c04ebf43a13f54bc13d, type: 3}
propertyPath: m_LocalScale.x
value: 5
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: a67c4eaad74e5c04ebf43a13f54bc13d, type: 3}
propertyPath: m_LocalScale.y
value: 5
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: a67c4eaad74e5c04ebf43a13f54bc13d, type: 3}
propertyPath: m_LocalScale.z
value: 5
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: a67c4eaad74e5c04ebf43a13f54bc13d, type: 3}
propertyPath: m_LocalPosition.x
value: 7.998
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: a67c4eaad74e5c04ebf43a13f54bc13d, type: 3}
propertyPath: m_LocalPosition.y
value: 0.123
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: a67c4eaad74e5c04ebf43a13f54bc13d, type: 3}
propertyPath: m_LocalPosition.z
value: 24
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: a67c4eaad74e5c04ebf43a13f54bc13d, type: 3}
propertyPath: m_LocalRotation.w
value: 0.999979
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: a67c4eaad74e5c04ebf43a13f54bc13d, type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: a67c4eaad74e5c04ebf43a13f54bc13d, type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: a67c4eaad74e5c04ebf43a13f54bc13d, type: 3}
propertyPath: m_LocalRotation.z
value: 0.0064838887
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: a67c4eaad74e5c04ebf43a13f54bc13d, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: a67c4eaad74e5c04ebf43a13f54bc13d, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: a67c4eaad74e5c04ebf43a13f54bc13d, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0.743
objectReference: {fileID: 0}
- target: {fileID: 919132149155446097, guid: a67c4eaad74e5c04ebf43a13f54bc13d, type: 3}
propertyPath: m_Name
value: cakeBirthday
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: a67c4eaad74e5c04ebf43a13f54bc13d, type: 3}
--- !u!4 &5967082374527359591 stripped
Transform:
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: a67c4eaad74e5c04ebf43a13f54bc13d, type: 3}
m_PrefabInstance: {fileID: 6144577509449006476}
m_PrefabAsset: {fileID: 0}
--- !u!1 &6450427219662782685 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 919132149155446097, guid: a67c4eaad74e5c04ebf43a13f54bc13d, type: 3}
m_PrefabInstance: {fileID: 6144577509449006476}
m_PrefabAsset: {fileID: 0}
--- !u!64 &3791610865377517073
MeshCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6450427219662782685}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 1
serializedVersion: 4
m_Convex: 0
m_CookingOptions: 30
m_Mesh: {fileID: 4300000, guid: ee525e307c7e23c449adda79b8029a44, type: 3}
--- !u!1001 &6158710650007280794
PrefabInstance:
m_ObjectHideFlags: 0
......@@ -23115,6 +23542,24 @@ Transform:
m_CorrespondingSourceObject: {fileID: 400000, guid: f1f8b886020c45442804bfb2a3995b9e, type: 3}
m_PrefabInstance: {fileID: 6536957720861265028}
m_PrefabAsset: {fileID: 0}
--- !u!1 &6536957720861297188 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 100000, guid: f1f8b886020c45442804bfb2a3995b9e, type: 3}
m_PrefabInstance: {fileID: 6536957720861265028}
m_PrefabAsset: {fileID: 0}
--- !u!65 &8576082049795906915
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6536957720861297188}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 1
serializedVersion: 2
m_Size: {x: 0.07034564, y: 3.5293899, z: 1.4929187}
m_Center: {x: 0.0018544194, y: 2.0145342, z: -0.65527856}
--- !u!1001 &6538415463023147094
PrefabInstance:
m_ObjectHideFlags: 0
......@@ -23448,15 +23893,15 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 494562, guid: 3517d6179b17d7d41b2ab3881cb2cd67, type: 3}
propertyPath: m_LocalPosition.x
value: 1.3752127
value: 1.375
objectReference: {fileID: 0}
- target: {fileID: 494562, guid: 3517d6179b17d7d41b2ab3881cb2cd67, type: 3}
propertyPath: m_LocalPosition.y
value: 0
value: -0
objectReference: {fileID: 0}
- target: {fileID: 494562, guid: 3517d6179b17d7d41b2ab3881cb2cd67, type: 3}
propertyPath: m_LocalPosition.z
value: 2.0101013
value: 3.751
objectReference: {fileID: 0}
- target: {fileID: 494562, guid: 3517d6179b17d7d41b2ab3881cb2cd67, type: 3}
propertyPath: m_LocalRotation.w
......@@ -27037,6 +27482,24 @@ Transform:
m_CorrespondingSourceObject: {fileID: 400000, guid: f1f8b886020c45442804bfb2a3995b9e, type: 3}
m_PrefabInstance: {fileID: 7818441392322773702}
m_PrefabAsset: {fileID: 0}
--- !u!1 &7818441392322872422 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 100000, guid: f1f8b886020c45442804bfb2a3995b9e, type: 3}
m_PrefabInstance: {fileID: 7818441392322773702}
m_PrefabAsset: {fileID: 0}
--- !u!65 &5255004451782703845
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7818441392322872422}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 1
serializedVersion: 2
m_Size: {x: 0.07034564, y: 3.5293899, z: 1.4929187}
m_Center: {x: 0.0018534657, y: 2.0145342, z: -0.65527904}
--- !u!1001 &7834710000706010714
PrefabInstance:
m_ObjectHideFlags: 0
......@@ -168,10 +168,10 @@ PrefabInstance:
- target: {fileID: 3467367347062617121, guid: 089e6e526292e96409dbbe8ee969709d, type: 3}
propertyPath: _console
value:
objectReference: {fileID: 0}
objectReference: {fileID: 2850296893478989023}
- target: {fileID: 5575983579713991425, guid: 089e6e526292e96409dbbe8ee969709d, type: 3}
propertyPath: m_LocalPosition.x
value: -1.95
value: -1.9
objectReference: {fileID: 0}
- target: {fileID: 5575983579713991425, guid: 089e6e526292e96409dbbe8ee969709d, type: 3}
propertyPath: m_LocalPosition.z
......@@ -203,6 +203,11 @@ PrefabInstance:
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 089e6e526292e96409dbbe8ee969709d, type: 3}
--- !u!1 &2850296893478989023 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 5575983579714275511, guid: 089e6e526292e96409dbbe8ee969709d, type: 3}
m_PrefabInstance: {fileID: 7705542867559720040}
m_PrefabAsset: {fileID: 0}
--- !u!4 &7550749944775378032 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 154865629601603608, guid: 089e6e526292e96409dbbe8ee969709d, type: 3}
......
......@@ -123,6 +123,28 @@ NavMeshSettings:
debug:
m_Flags: 0
m_NavMeshData: {fileID: 0}
--- !u!114 &79591660 stripped
MonoBehaviour:
m_CorrespondingSourceObject: {fileID: 4800165908522068457, guid: c734a74a53239c312bd0365490ad11b2, type: 3}
m_PrefabInstance: {fileID: 1586382633}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!114 &146755055 stripped
MonoBehaviour:
m_CorrespondingSourceObject: {fileID: 7186122516454717628, guid: c734a74a53239c312bd0365490ad11b2, type: 3}
m_PrefabInstance: {fileID: 1586382633}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &329648088
GameObject:
m_ObjectHideFlags: 0
......@@ -215,8 +237,9 @@ Transform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 2
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0}
--- !u!1 &420896859
--- !u!1 &607042335
GameObject:
m_ObjectHideFlags: 0
......@@ -376,7 +399,7 @@ PrefabInstance:
m_Modifications:
- target: {fileID: 4298483535738884810, guid: c734a74a53239c312bd0365490ad11b2, type: 3}
propertyPath: m_RootOrder
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4298483535738884810, guid: c734a74a53239c312bd0365490ad11b2, type: 3}
propertyPath: m_LocalPosition.x
......@@ -432,6 +455,11 @@ PrefabInstance:
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: c734a74a53239c312bd0365490ad11b2, type: 3}
--- !u!1 &1838215257 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 1149873930853450490, guid: 67a51bbee122bdc46bc2291445bdaf75, type: 3}
m_PrefabInstance: {fileID: 2052166820}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &2052166820
PrefabInstance:
m_ObjectHideFlags: 0
......@@ -441,7 +469,7 @@ PrefabInstance:
m_Modifications:
- target: {fileID: 1830644942908338429, guid: 67a51bbee122bdc46bc2291445bdaf75, type: 3}
propertyPath: m_RootOrder
value: 1
value: 2
objectReference: {fileID: 0}
- target: {fileID: 1830644942908338429, guid: 67a51bbee122bdc46bc2291445bdaf75, type: 3}
propertyPath: m_LocalPosition.x
......
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;
public class BreakableGlassController : MonoBehaviour
{
private Action onSuccess;
private Animator _animator;
// Start is called before the first frame update
void Start()
{
this.GetComponent<BreakableGlassInteractable>().AddObserver(OnGlassRepair);
this._animator = this.GetComponent<Animator>();
}
// Update is called once per frame
void Update()
// Fonction conséquence à la réparation de la glass
void OnGlassRepair(string str)
{
onSuccess();
}
// Fonction conséquence à la réparation de la glass
void OnGlassRepair(string str)
//The function that is called when the player win
public void OnSuccess(Action onSuccess)
{
this.onSuccess = onSuccess;
}
//Reset the glass
public void Reset()
{
_animator.SetTrigger("GlassBroken");
}
}
......@@ -8,7 +8,7 @@ public class BreakableGlassInteractable : Interactable
// Use this for initialization
void Start()
{
_animator = GetComponent<Animator>();
this._animator = this.GetComponent<Animator>();
}
// Update is called once per frame
......
......@@ -26,12 +26,6 @@ public class Logic : MonoBehaviour, MiniGameObserver
ChooseRandomMiniGame();
}
// Update is called once per frame
void Update()
{
}
//Choose a new random game on win
public void OnWin(MiniGame miniGame)
{
......
......@@ -4,7 +4,7 @@ MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
executionOrder: 100
icon: {instanceID: 0}
userData:
assetBundleName:
......
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;
namespace Game.MinigameScript
{
public class Breakable : MiniGame
{
//The breakable minigame
private BreakableGlassController _beakableGlassController;
private void Start()
{
_beakableGlassController = this.GetComponent<BreakableGlassController>();
_beakableGlassController.OnSuccess(OnWin);
Debug.Log(_beakableGlassController.ToString());
}
public override void StartScript()
{
_beakableGlassController.enabled = true;
_beakableGlassController.Reset();
}
public override void OnWin()
{
_beakableGlassController.enabled = false;
NotifyWin();
}
public override void OnLose()
{
NotifyLose();
}
}
}
\ No newline at end of file
fileFormatVersion: 2
guid: 08ef00bf9909b8f4c95945cecfbb2984
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
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