From a5e306eb338b70b8c82849b65fe657a81757bc0f Mon Sep 17 00:00:00 2001 From: Khauvinkh Date: Sat, 17 Aug 2024 20:38:25 +0200 Subject: [PATCH] Added more prefabs --- .../Prefabs/Construction/Double Stairs.prefab | 292 ++++++ .../Construction/Double Stairs.prefab.meta | 7 + .../Prefabs/Products/Crate_Defective.prefab | 2 +- Assets/Prefabs/Products/Crate_Normal.prefab | 15 +- Assets/Prefabs/Trash Bin.prefab | 835 ++++++++++++++++++ Assets/Prefabs/Trash Bin.prefab.meta | 7 + Assets/Scripts/Machines.meta | 3 + .../Scripts/{ => Machines}/ProductReceiver.cs | 0 .../{ => Machines}/ProductReceiver.cs.meta | 0 .../{Products => Machines}/ProductSpawner.cs | 0 .../ProductSpawner.cs.meta | 0 Assets/Scripts/Machines/TrashBin.cs | 92 ++ Assets/Scripts/Machines/TrashBin.cs.meta | 3 + Assets/Scripts/Products/DefectiveProduct.cs | 2 +- Assets/Scripts/Products/Product.cs | 6 + Assets/Scripts/Products/Product.cs.meta | 3 + 16 files changed, 1264 insertions(+), 3 deletions(-) create mode 100644 Assets/Prefabs/Construction/Double Stairs.prefab create mode 100644 Assets/Prefabs/Construction/Double Stairs.prefab.meta create mode 100644 Assets/Prefabs/Trash Bin.prefab create mode 100644 Assets/Prefabs/Trash Bin.prefab.meta create mode 100644 Assets/Scripts/Machines.meta rename Assets/Scripts/{ => Machines}/ProductReceiver.cs (100%) rename Assets/Scripts/{ => Machines}/ProductReceiver.cs.meta (100%) rename Assets/Scripts/{Products => Machines}/ProductSpawner.cs (100%) rename Assets/Scripts/{Products => Machines}/ProductSpawner.cs.meta (100%) create mode 100644 Assets/Scripts/Machines/TrashBin.cs create mode 100644 Assets/Scripts/Machines/TrashBin.cs.meta create mode 100644 Assets/Scripts/Products/Product.cs create mode 100644 Assets/Scripts/Products/Product.cs.meta diff --git a/Assets/Prefabs/Construction/Double Stairs.prefab b/Assets/Prefabs/Construction/Double Stairs.prefab new file mode 100644 index 0000000..c986b22 --- /dev/null +++ b/Assets/Prefabs/Construction/Double Stairs.prefab @@ -0,0 +1,292 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &967917302393318204 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 5563351632361831542} + - component: {fileID: 1715723942273311323} + m_Layer: 0 + m_Name: Double Stairs + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &5563351632361831542 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 967917302393318204} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 5.125, y: 2.75, z: 11.75} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 1723424575660055526} + - {fileID: 2287517268529993800} + m_Father: {fileID: 0} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &1715723942273311323 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 967917302393318204} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: af3e57595c24e7b4dbb6f7f44db23525, type: 3} + m_Name: + m_EditorClassIdentifier: + Size: + x: 5 + y: 10 + z: 10 + CenterOffset: + x: 0 + y: 0 + z: 0 + cachedSize: + x: 5 + y: 10 + z: 10 + cachedOffset: + x: 0 + y: 0 + z: 0 +--- !u!1 &4823113163291739237 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 3396608799655008614} + - component: {fileID: 3111206034487271563} + - component: {fileID: 4238654908495439931} + m_Layer: 0 + m_Name: Stairs Base (1) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &3396608799655008614 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4823113163291739237} + serializedVersion: 2 + m_LocalRotation: {x: -0.7071068, y: -0, z: -0, w: 0.7071067} + m_LocalPosition: {x: 0, y: 0.5, z: -0.5} + m_LocalScale: {x: 0.625, y: 0.125, z: 0.74999994} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 1723424575660055526} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!33 &3111206034487271563 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4823113163291739237} + m_Mesh: {fileID: 388052450090315492, guid: b63196673433e784fad02b661a7699ad, type: 3} +--- !u!23 &4238654908495439931 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4823113163291739237} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RayTraceProcedural: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} + 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!1001 &8352327911313927276 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + serializedVersion: 3 + m_TransformParent: {fileID: 5563351632361831542} + m_Modifications: + - target: {fileID: 5175999938582883548, guid: 77ee7ec75f83819418bba995d0824dc4, type: 3} + propertyPath: m_Name + value: Stairs Basic (3) + objectReference: {fileID: 0} + - target: {fileID: 7806859308007633956, guid: 77ee7ec75f83819418bba995d0824dc4, type: 3} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 7806859308007633956, guid: 77ee7ec75f83819418bba995d0824dc4, type: 3} + propertyPath: m_LocalPosition.y + value: 1.25 + objectReference: {fileID: 0} + - target: {fileID: 7806859308007633956, guid: 77ee7ec75f83819418bba995d0824dc4, type: 3} + propertyPath: m_LocalPosition.z + value: -0.625 + objectReference: {fileID: 0} + - target: {fileID: 7806859308007633956, guid: 77ee7ec75f83819418bba995d0824dc4, type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 7806859308007633956, guid: 77ee7ec75f83819418bba995d0824dc4, type: 3} + propertyPath: m_LocalRotation.x + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 7806859308007633956, guid: 77ee7ec75f83819418bba995d0824dc4, type: 3} + propertyPath: m_LocalRotation.y + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 7806859308007633956, guid: 77ee7ec75f83819418bba995d0824dc4, type: 3} + propertyPath: m_LocalRotation.z + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 7806859308007633956, guid: 77ee7ec75f83819418bba995d0824dc4, type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 7806859308007633956, guid: 77ee7ec75f83819418bba995d0824dc4, type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 7806859308007633956, guid: 77ee7ec75f83819418bba995d0824dc4, type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 8705114440735707007, guid: 77ee7ec75f83819418bba995d0824dc4, type: 3} + propertyPath: CenterOffset.y + value: -0.625 + objectReference: {fileID: 0} + - target: {fileID: 8705114440735707007, guid: 77ee7ec75f83819418bba995d0824dc4, type: 3} + propertyPath: cachedOffset.y + value: -0.625 + objectReference: {fileID: 0} + m_RemovedComponents: + - {fileID: 8705114440735707007, guid: 77ee7ec75f83819418bba995d0824dc4, type: 3} + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: 77ee7ec75f83819418bba995d0824dc4, type: 3} +--- !u!4 &2287517268529993800 stripped +Transform: + m_CorrespondingSourceObject: {fileID: 7806859308007633956, guid: 77ee7ec75f83819418bba995d0824dc4, type: 3} + m_PrefabInstance: {fileID: 8352327911313927276} + m_PrefabAsset: {fileID: 0} +--- !u!1001 &8916384716645101506 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + serializedVersion: 3 + m_TransformParent: {fileID: 5563351632361831542} + m_Modifications: + - target: {fileID: 5175999938582883548, guid: 77ee7ec75f83819418bba995d0824dc4, type: 3} + propertyPath: m_Name + value: Stairs Basic (2) + objectReference: {fileID: 0} + - target: {fileID: 7806859308007633956, guid: 77ee7ec75f83819418bba995d0824dc4, type: 3} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 7806859308007633956, guid: 77ee7ec75f83819418bba995d0824dc4, type: 3} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 7806859308007633956, guid: 77ee7ec75f83819418bba995d0824dc4, type: 3} + propertyPath: m_LocalPosition.z + value: 0.625 + objectReference: {fileID: 0} + - target: {fileID: 7806859308007633956, guid: 77ee7ec75f83819418bba995d0824dc4, type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 7806859308007633956, guid: 77ee7ec75f83819418bba995d0824dc4, type: 3} + propertyPath: m_LocalRotation.x + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 7806859308007633956, guid: 77ee7ec75f83819418bba995d0824dc4, type: 3} + propertyPath: m_LocalRotation.y + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 7806859308007633956, guid: 77ee7ec75f83819418bba995d0824dc4, type: 3} + propertyPath: m_LocalRotation.z + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 7806859308007633956, guid: 77ee7ec75f83819418bba995d0824dc4, type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 7806859308007633956, guid: 77ee7ec75f83819418bba995d0824dc4, type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 7806859308007633956, guid: 77ee7ec75f83819418bba995d0824dc4, type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 8705114440735707007, guid: 77ee7ec75f83819418bba995d0824dc4, type: 3} + propertyPath: CenterOffset.y + value: -0.625 + objectReference: {fileID: 0} + - target: {fileID: 8705114440735707007, guid: 77ee7ec75f83819418bba995d0824dc4, type: 3} + propertyPath: cachedOffset.y + value: -0.625 + objectReference: {fileID: 0} + m_RemovedComponents: + - {fileID: 8705114440735707007, guid: 77ee7ec75f83819418bba995d0824dc4, type: 3} + m_RemovedGameObjects: [] + m_AddedGameObjects: + - targetCorrespondingSourceObject: {fileID: 7806859308007633956, guid: 77ee7ec75f83819418bba995d0824dc4, type: 3} + insertIndex: 3 + addedObject: {fileID: 3396608799655008614} + m_AddedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: 77ee7ec75f83819418bba995d0824dc4, type: 3} +--- !u!4 &1723424575660055526 stripped +Transform: + m_CorrespondingSourceObject: {fileID: 7806859308007633956, guid: 77ee7ec75f83819418bba995d0824dc4, type: 3} + m_PrefabInstance: {fileID: 8916384716645101506} + m_PrefabAsset: {fileID: 0} diff --git a/Assets/Prefabs/Construction/Double Stairs.prefab.meta b/Assets/Prefabs/Construction/Double Stairs.prefab.meta new file mode 100644 index 0000000..557bd6b --- /dev/null +++ b/Assets/Prefabs/Construction/Double Stairs.prefab.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 8366add12203d8a43a929191345c4571 +PrefabImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Prefabs/Products/Crate_Defective.prefab b/Assets/Prefabs/Products/Crate_Defective.prefab index 07f7ebe..90f22b9 100644 --- a/Assets/Prefabs/Products/Crate_Defective.prefab +++ b/Assets/Prefabs/Products/Crate_Defective.prefab @@ -31,7 +31,7 @@ Transform: serializedVersion: 2 m_LocalRotation: {x: 0.67568386, y: -0.11777167, z: 0.12495836, w: 0.7169147} m_LocalPosition: {x: 36.650307, y: 1.1982483, z: -0.14469147} - m_LocalScale: {x: 1, y: 1, z: 1} + m_LocalScale: {x: 0.5, y: 0.5, z: 0.5} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 0} diff --git a/Assets/Prefabs/Products/Crate_Normal.prefab b/Assets/Prefabs/Products/Crate_Normal.prefab index 17a06cf..538ce28 100644 --- a/Assets/Prefabs/Products/Crate_Normal.prefab +++ b/Assets/Prefabs/Products/Crate_Normal.prefab @@ -13,6 +13,7 @@ GameObject: - component: {fileID: 2547041061673746692} - component: {fileID: 3271489653354074546} - component: {fileID: 6230516344177671089} + - component: {fileID: 6019766329357943404} m_Layer: 0 m_Name: Crate_Normal m_TagString: Untagged @@ -30,7 +31,7 @@ Transform: serializedVersion: 2 m_LocalRotation: {x: 0.67568386, y: -0.11777167, z: 0.12495836, w: 0.7169147} m_LocalPosition: {x: 36.650307, y: 1.1982483, z: -0.14469147} - m_LocalScale: {x: 1, y: 1, z: 1} + m_LocalScale: {x: 0.5, y: 0.5, z: 0.5} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 0} @@ -133,3 +134,15 @@ Rigidbody: m_Interpolate: 1 m_Constraints: 0 m_CollisionDetection: 0 +--- !u!114 &6019766329357943404 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8661871210265028242} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 813c296fdd6145aeaa5dfd4a2b2ca423, type: 3} + m_Name: + m_EditorClassIdentifier: diff --git a/Assets/Prefabs/Trash Bin.prefab b/Assets/Prefabs/Trash Bin.prefab new file mode 100644 index 0000000..36a3af9 --- /dev/null +++ b/Assets/Prefabs/Trash Bin.prefab @@ -0,0 +1,835 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &195707205153043526 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1917873878932957684} + - component: {fileID: 1519477778021568925} + - component: {fileID: 7221574221446756612} + - component: {fileID: 821099733735114387} + m_Layer: 0 + m_Name: Cube (3) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1917873878932957684 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 195707205153043526} + serializedVersion: 2 + m_LocalRotation: {x: -0, y: 0.70710576, z: -0, w: 0.70710784} + m_LocalPosition: {x: 0, y: 0, z: 0.625} + m_LocalScale: {x: 0.25, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 2495888624565623593} + m_LocalEulerAnglesHint: {x: 0, y: 90, z: 0} +--- !u!33 &1519477778021568925 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 195707205153043526} + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} +--- !u!23 &7221574221446756612 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 195707205153043526} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RayTraceProcedural: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_AdditionalVertexStreams: {fileID: 0} +--- !u!65 &821099733735114387 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 195707205153043526} + m_Material: {fileID: 0} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_LayerOverridePriority: 0 + m_IsTrigger: 0 + m_ProvidesContacts: 0 + m_Enabled: 1 + serializedVersion: 3 + m_Size: {x: 1, y: 1, z: 1} + m_Center: {x: 0, y: 0, z: 0} +--- !u!1 &916102329507164225 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1861900906497720201} + - component: {fileID: 4897851480572798334} + - component: {fileID: 1240971926282280637} + - component: {fileID: 6699187345814001617} + m_Layer: 0 + m_Name: Cube (1) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1861900906497720201 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 916102329507164225} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: -0.625, y: 0, z: 0} + m_LocalScale: {x: 0.25, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 2495888624565623593} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!33 &4897851480572798334 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 916102329507164225} + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} +--- !u!23 &1240971926282280637 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 916102329507164225} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RayTraceProcedural: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_AdditionalVertexStreams: {fileID: 0} +--- !u!65 &6699187345814001617 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 916102329507164225} + m_Material: {fileID: 0} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_LayerOverridePriority: 0 + m_IsTrigger: 0 + m_ProvidesContacts: 0 + m_Enabled: 1 + serializedVersion: 3 + m_Size: {x: 1, y: 1, z: 1} + m_Center: {x: 0, y: 0, z: 0} +--- !u!1 &2203609419023021041 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 575162192867159074} + - component: {fileID: 3053512036510773826} + - component: {fileID: 120084108208117303} + - component: {fileID: 2065491756298449082} + m_Layer: 0 + m_Name: Cube + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &575162192867159074 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2203609419023021041} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0.625, y: 0, z: 0} + m_LocalScale: {x: 0.25, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 2495888624565623593} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!33 &3053512036510773826 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2203609419023021041} + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} +--- !u!23 &120084108208117303 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2203609419023021041} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RayTraceProcedural: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_AdditionalVertexStreams: {fileID: 0} +--- !u!65 &2065491756298449082 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2203609419023021041} + m_Material: {fileID: 0} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_LayerOverridePriority: 0 + m_IsTrigger: 0 + m_ProvidesContacts: 0 + m_Enabled: 1 + serializedVersion: 3 + m_Size: {x: 1, y: 1, z: 1} + m_Center: {x: 0, y: 0, z: 0} +--- !u!1 &2816309407541869571 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 3771251087916135269} + - component: {fileID: 2686074689273628093} + - component: {fileID: 5469218953497138027} + - component: {fileID: 2992375679240247859} + m_Layer: 0 + m_Name: Cube (4) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &3771251087916135269 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2816309407541869571} + serializedVersion: 2 + m_LocalRotation: {x: -0.50000006, y: 0.49999994, z: -0.49999857, w: 0.5000015} + m_LocalPosition: {x: 0, y: -0.625, z: 0} + m_LocalScale: {x: 0.25, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 2495888624565623593} + m_LocalEulerAnglesHint: {x: 0, y: 90, z: -90} +--- !u!33 &2686074689273628093 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2816309407541869571} + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} +--- !u!23 &5469218953497138027 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2816309407541869571} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RayTraceProcedural: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_AdditionalVertexStreams: {fileID: 0} +--- !u!65 &2992375679240247859 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2816309407541869571} + m_Material: {fileID: 0} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_LayerOverridePriority: 0 + m_IsTrigger: 0 + m_ProvidesContacts: 0 + m_Enabled: 1 + serializedVersion: 3 + m_Size: {x: 1, y: 1, z: 1} + m_Center: {x: 0, y: 0, z: 0} +--- !u!1 &4732044660687791136 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 7619075978661341137} + - component: {fileID: 3866547807340686159} + - component: {fileID: 4144557977246968267} + - component: {fileID: 8136940352281375842} + m_Layer: 0 + m_Name: Cube (2) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &7619075978661341137 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4732044660687791136} + serializedVersion: 2 + m_LocalRotation: {x: -0, y: 0.70710576, z: -0, w: 0.70710784} + m_LocalPosition: {x: 0, y: 0, z: -0.625} + m_LocalScale: {x: 0.25, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 2495888624565623593} + m_LocalEulerAnglesHint: {x: 0, y: 90, z: 0} +--- !u!33 &3866547807340686159 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4732044660687791136} + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} +--- !u!23 &4144557977246968267 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4732044660687791136} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RayTraceProcedural: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_AdditionalVertexStreams: {fileID: 0} +--- !u!65 &8136940352281375842 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4732044660687791136} + m_Material: {fileID: 0} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_LayerOverridePriority: 0 + m_IsTrigger: 0 + m_ProvidesContacts: 0 + m_Enabled: 1 + serializedVersion: 3 + m_Size: {x: 1, y: 1, z: 1} + m_Center: {x: 0, y: 0, z: 0} +--- !u!1 &4990983459330306918 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 2095803829795810734} + m_Layer: 0 + m_Name: Closed Anchor + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &2095803829795810734 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4990983459330306918} + serializedVersion: 2 + m_LocalRotation: {x: -0.50000006, y: 0.49999994, z: -0.49999857, w: 0.5000015} + m_LocalPosition: {x: 0, y: 0.5625, z: 0} + m_LocalScale: {x: 0.125, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 2495888624565623593} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &5047089605741593696 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 2495888624565623593} + m_Layer: 0 + m_Name: Model + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &2495888624565623593 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5047089605741593696} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 8675812372520174612} + - {fileID: 2095803829795810734} + - {fileID: 6014011409683973342} + - {fileID: 575162192867159074} + - {fileID: 7619075978661341137} + - {fileID: 1917873878932957684} + - {fileID: 3771251087916135269} + - {fileID: 1861900906497720201} + m_Father: {fileID: 2087610505205571315} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &5140399307065477221 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 2087610505205571315} + - component: {fileID: 6154826662665204373} + - component: {fileID: 3141145612382111117} + - component: {fileID: 4182849772416151034} + m_Layer: 0 + m_Name: Trash Bin + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &2087610505205571315 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5140399307065477221} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 1.25, y: 0.25, z: 4.25} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 2495888624565623593} + m_Father: {fileID: 0} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &6154826662665204373 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5140399307065477221} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 46eefd3f602b47379d40397411611b9b, type: 3} + m_Name: + m_EditorClassIdentifier: + CooldownDuration: 3 + IncinerationDuration: 1 + doorVelocity: 5 + DoorTransform: {fileID: 8675812372520174612} + OpenAnchor: {fileID: 6014011409683973342} + ClosedAnchor: {fileID: 2095803829795810734} +--- !u!65 &3141145612382111117 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5140399307065477221} + m_Material: {fileID: 0} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_LayerOverridePriority: 0 + m_IsTrigger: 1 + m_ProvidesContacts: 0 + m_Enabled: 1 + serializedVersion: 3 + m_Size: {x: 1, y: 0.3225648, z: 1} + m_Center: {x: 0, y: -0.33871758, z: 0} +--- !u!114 &4182849772416151034 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5140399307065477221} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: af3e57595c24e7b4dbb6f7f44db23525, type: 3} + m_Name: + m_EditorClassIdentifier: + Size: + x: 4 + y: 4 + z: 4 + CenterOffset: + x: 0 + y: 0 + z: 0 + cachedSize: + x: 4 + y: 4 + z: 4 + cachedOffset: + x: 0 + y: 0 + z: 0 +--- !u!1 &7123622555576270983 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 8675812372520174612} + - component: {fileID: 7591294757367121480} + - component: {fileID: 5433494351556917903} + - component: {fileID: 958042645083517970} + m_Layer: 0 + m_Name: Lid + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &8675812372520174612 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7123622555576270983} + serializedVersion: 2 + m_LocalRotation: {x: -0.50000006, y: 0.49999997, z: -0.49999854, w: 0.5000015} + m_LocalPosition: {x: 0, y: 0.5625, z: -1} + m_LocalScale: {x: 0.125, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 2495888624565623593} + m_LocalEulerAnglesHint: {x: 0, y: 90, z: -90} +--- !u!33 &7591294757367121480 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7123622555576270983} + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} +--- !u!23 &5433494351556917903 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7123622555576270983} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RayTraceProcedural: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: 54361f89cfee8b94d810c14a6beb11b5, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_AdditionalVertexStreams: {fileID: 0} +--- !u!65 &958042645083517970 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7123622555576270983} + m_Material: {fileID: 0} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_LayerOverridePriority: 0 + m_IsTrigger: 0 + m_ProvidesContacts: 0 + m_Enabled: 1 + serializedVersion: 3 + m_Size: {x: 1, y: 1, z: 1} + m_Center: {x: 0, y: 0, z: 0} +--- !u!1 &8120942306837880819 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 6014011409683973342} + m_Layer: 0 + m_Name: Open Anchor + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &6014011409683973342 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8120942306837880819} + serializedVersion: 2 + m_LocalRotation: {x: -0.50000006, y: 0.49999994, z: -0.49999857, w: 0.5000015} + m_LocalPosition: {x: 0, y: 0.5625, z: -1} + m_LocalScale: {x: 0.125, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 2495888624565623593} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} diff --git a/Assets/Prefabs/Trash Bin.prefab.meta b/Assets/Prefabs/Trash Bin.prefab.meta new file mode 100644 index 0000000..a369750 --- /dev/null +++ b/Assets/Prefabs/Trash Bin.prefab.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 9a8b6d48785ecc64aa27f072abb69239 +PrefabImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Machines.meta b/Assets/Scripts/Machines.meta new file mode 100644 index 0000000..8c7f5b1 --- /dev/null +++ b/Assets/Scripts/Machines.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: dff77f06996a4ff1942273ccf704d6f1 +timeCreated: 1723917395 \ No newline at end of file diff --git a/Assets/Scripts/ProductReceiver.cs b/Assets/Scripts/Machines/ProductReceiver.cs similarity index 100% rename from Assets/Scripts/ProductReceiver.cs rename to Assets/Scripts/Machines/ProductReceiver.cs diff --git a/Assets/Scripts/ProductReceiver.cs.meta b/Assets/Scripts/Machines/ProductReceiver.cs.meta similarity index 100% rename from Assets/Scripts/ProductReceiver.cs.meta rename to Assets/Scripts/Machines/ProductReceiver.cs.meta diff --git a/Assets/Scripts/Products/ProductSpawner.cs b/Assets/Scripts/Machines/ProductSpawner.cs similarity index 100% rename from Assets/Scripts/Products/ProductSpawner.cs rename to Assets/Scripts/Machines/ProductSpawner.cs diff --git a/Assets/Scripts/Products/ProductSpawner.cs.meta b/Assets/Scripts/Machines/ProductSpawner.cs.meta similarity index 100% rename from Assets/Scripts/Products/ProductSpawner.cs.meta rename to Assets/Scripts/Machines/ProductSpawner.cs.meta diff --git a/Assets/Scripts/Machines/TrashBin.cs b/Assets/Scripts/Machines/TrashBin.cs new file mode 100644 index 0000000..ee7e3af --- /dev/null +++ b/Assets/Scripts/Machines/TrashBin.cs @@ -0,0 +1,92 @@ +using System.Collections.Generic; +using UnityEngine; + +public class TrashBin : MonoBehaviour +{ + public float CooldownDuration; + private float _cooldownTimer; + + private float _incinerationTimer = 1f; + public float IncinerationDuration = 1f; + + public float doorVelocity = 5f; + public Transform DoorTransform; + public Transform OpenAnchor; + public Transform ClosedAnchor; + private Vector3 _targetPosition; + + List enteredProducts = new List(); + + public void Start() + { + _targetPosition = OpenAnchor.position; + } + + public void OnTriggerEnter(Collider otherCollider) + { + var rb = otherCollider.GetComponent(); + + if (!rb) + { + return; + } + + if (otherCollider.TryGetComponent(out Product product)) + { + if (!enteredProducts.Contains(product)) + { + enteredProducts.Add(product); + } + + _cooldownTimer = CooldownDuration; + _targetPosition = ClosedAnchor.position; + } + else + { + rb.AddForce(5f * Vector3.up); + } + } + + public void OnTriggerExit(Collider collider) + { + if (collider.TryGetComponent(out Product product)) + { + if (enteredProducts.Contains(product)) + { + enteredProducts.Remove(product); + } + } + } + + private void Update() + { + DoorTransform.position = Vector3.Lerp( + DoorTransform.position, + _targetPosition, + Time.deltaTime * doorVelocity); + + if (_cooldownTimer <= 0) + { + return; + } + + _cooldownTimer -= Time.deltaTime; + _incinerationTimer -= Time.deltaTime; + + if (_incinerationTimer <= 0) + { + foreach (var product in enteredProducts) + { + Destroy(product.gameObject); + } + + enteredProducts.Clear(); + _incinerationTimer = IncinerationDuration; + } + + if (_cooldownTimer <= 0) + { + _targetPosition = OpenAnchor.position; + } + } +} \ No newline at end of file diff --git a/Assets/Scripts/Machines/TrashBin.cs.meta b/Assets/Scripts/Machines/TrashBin.cs.meta new file mode 100644 index 0000000..bed33d2 --- /dev/null +++ b/Assets/Scripts/Machines/TrashBin.cs.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: 46eefd3f602b47379d40397411611b9b +timeCreated: 1723917379 \ No newline at end of file diff --git a/Assets/Scripts/Products/DefectiveProduct.cs b/Assets/Scripts/Products/DefectiveProduct.cs index bb58c42..822c04b 100644 --- a/Assets/Scripts/Products/DefectiveProduct.cs +++ b/Assets/Scripts/Products/DefectiveProduct.cs @@ -1,6 +1,6 @@ using UnityEngine; -public class DefectiveProduct : MonoBehaviour +public class DefectiveProduct : Product { } \ No newline at end of file diff --git a/Assets/Scripts/Products/Product.cs b/Assets/Scripts/Products/Product.cs new file mode 100644 index 0000000..2fe8250 --- /dev/null +++ b/Assets/Scripts/Products/Product.cs @@ -0,0 +1,6 @@ +using UnityEngine; + +public class Product : MonoBehaviour +{ + +} \ No newline at end of file diff --git a/Assets/Scripts/Products/Product.cs.meta b/Assets/Scripts/Products/Product.cs.meta new file mode 100644 index 0000000..4e70aa6 --- /dev/null +++ b/Assets/Scripts/Products/Product.cs.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: 813c296fdd6145aeaa5dfd4a2b2ca423 +timeCreated: 1723917512 \ No newline at end of file