From a6682a2b8b2f32bd5c6e9cddc60480917cbf65ee Mon Sep 17 00:00:00 2001 From: Daniel Tyomin Date: Mon, 19 Aug 2024 19:19:41 +0200 Subject: [PATCH] Audio for some of the machines --- Assets/Audio/Hammer/e_success.wav.meta | 23 + .../Audio/Hammer/product_defective.wav.meta | 23 + Assets/Audio/Industrial.meta | 8 + .../Audio/Industrial/converter_cycle.wav.meta | 23 + .../Industrial/conveyor_running.wav.meta | 23 + Assets/Audio/Industrial/crane_move.wav.meta | 23 + .../Industrial/item_destruction.wav.meta | 23 + Assets/Audio/Industrial/magnet_down.wav.meta | 23 + Assets/Audio/Industrial/magnet_move.wav.meta | 23 + Assets/Audio/Industrial/magnet_pulse.wav.meta | 23 + Assets/Audio/Industrial/magnet_up.wav.meta | 23 + Assets/Audio/Player/death.wav.meta | 23 + Assets/Data/Types/Basic Torus.asset | 12 +- .../Conveyor/Conveyor Segment V2.prefab | 8 + .../Conveyor/Product Converter 1.prefab | 1 + Assets/Scenes/Main.unity | 813 ------------------ Assets/Scripts/ConveyorBelt.cs | 24 +- .../Scripts/Game Schedule/StagingManager.cs | 1 - Assets/Scripts/Machines/Converter.cs | 13 + 19 files changed, 312 insertions(+), 821 deletions(-) create mode 100644 Assets/Audio/Hammer/e_success.wav.meta create mode 100644 Assets/Audio/Hammer/product_defective.wav.meta create mode 100644 Assets/Audio/Industrial.meta create mode 100644 Assets/Audio/Industrial/converter_cycle.wav.meta create mode 100644 Assets/Audio/Industrial/conveyor_running.wav.meta create mode 100644 Assets/Audio/Industrial/crane_move.wav.meta create mode 100644 Assets/Audio/Industrial/item_destruction.wav.meta create mode 100644 Assets/Audio/Industrial/magnet_down.wav.meta create mode 100644 Assets/Audio/Industrial/magnet_move.wav.meta create mode 100644 Assets/Audio/Industrial/magnet_pulse.wav.meta create mode 100644 Assets/Audio/Industrial/magnet_up.wav.meta create mode 100644 Assets/Audio/Player/death.wav.meta diff --git a/Assets/Audio/Hammer/e_success.wav.meta b/Assets/Audio/Hammer/e_success.wav.meta new file mode 100644 index 0000000..7de5ffb --- /dev/null +++ b/Assets/Audio/Hammer/e_success.wav.meta @@ -0,0 +1,23 @@ +fileFormatVersion: 2 +guid: 9a6a34ed8fef73c49ba83ab5c792877b +AudioImporter: + externalObjects: {} + serializedVersion: 7 + defaultSettings: + serializedVersion: 2 + loadType: 0 + sampleRateSetting: 0 + sampleRateOverride: 44100 + compressionFormat: 1 + quality: 1 + conversionMode: 0 + preloadAudioData: 0 + platformSettingOverrides: {} + forceToMono: 0 + normalize: 1 + loadInBackground: 0 + ambisonic: 0 + 3D: 1 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Audio/Hammer/product_defective.wav.meta b/Assets/Audio/Hammer/product_defective.wav.meta new file mode 100644 index 0000000..bf76e44 --- /dev/null +++ b/Assets/Audio/Hammer/product_defective.wav.meta @@ -0,0 +1,23 @@ +fileFormatVersion: 2 +guid: 7860e0f7a6cc2b04bbfb442ae4497a9f +AudioImporter: + externalObjects: {} + serializedVersion: 7 + defaultSettings: + serializedVersion: 2 + loadType: 0 + sampleRateSetting: 0 + sampleRateOverride: 44100 + compressionFormat: 1 + quality: 1 + conversionMode: 0 + preloadAudioData: 0 + platformSettingOverrides: {} + forceToMono: 0 + normalize: 1 + loadInBackground: 0 + ambisonic: 0 + 3D: 1 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Audio/Industrial.meta b/Assets/Audio/Industrial.meta new file mode 100644 index 0000000..c83b994 --- /dev/null +++ b/Assets/Audio/Industrial.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 1d129bf3fc4d64c45bf6204987231c96 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Audio/Industrial/converter_cycle.wav.meta b/Assets/Audio/Industrial/converter_cycle.wav.meta new file mode 100644 index 0000000..a52dd7d --- /dev/null +++ b/Assets/Audio/Industrial/converter_cycle.wav.meta @@ -0,0 +1,23 @@ +fileFormatVersion: 2 +guid: 470cbdb0b0814004e999ee2afb58e46c +AudioImporter: + externalObjects: {} + serializedVersion: 7 + defaultSettings: + serializedVersion: 2 + loadType: 0 + sampleRateSetting: 0 + sampleRateOverride: 44100 + compressionFormat: 1 + quality: 1 + conversionMode: 0 + preloadAudioData: 0 + platformSettingOverrides: {} + forceToMono: 0 + normalize: 1 + loadInBackground: 0 + ambisonic: 0 + 3D: 1 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Audio/Industrial/conveyor_running.wav.meta b/Assets/Audio/Industrial/conveyor_running.wav.meta new file mode 100644 index 0000000..3233dc0 --- /dev/null +++ b/Assets/Audio/Industrial/conveyor_running.wav.meta @@ -0,0 +1,23 @@ +fileFormatVersion: 2 +guid: 07668ba2dee122144a01b9d9872664e4 +AudioImporter: + externalObjects: {} + serializedVersion: 7 + defaultSettings: + serializedVersion: 2 + loadType: 0 + sampleRateSetting: 0 + sampleRateOverride: 44100 + compressionFormat: 1 + quality: 1 + conversionMode: 0 + preloadAudioData: 0 + platformSettingOverrides: {} + forceToMono: 0 + normalize: 1 + loadInBackground: 0 + ambisonic: 0 + 3D: 1 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Audio/Industrial/crane_move.wav.meta b/Assets/Audio/Industrial/crane_move.wav.meta new file mode 100644 index 0000000..150294c --- /dev/null +++ b/Assets/Audio/Industrial/crane_move.wav.meta @@ -0,0 +1,23 @@ +fileFormatVersion: 2 +guid: 2399d8fee903f734cba66a2dcab1c36e +AudioImporter: + externalObjects: {} + serializedVersion: 7 + defaultSettings: + serializedVersion: 2 + loadType: 0 + sampleRateSetting: 0 + sampleRateOverride: 44100 + compressionFormat: 1 + quality: 1 + conversionMode: 0 + preloadAudioData: 0 + platformSettingOverrides: {} + forceToMono: 0 + normalize: 1 + loadInBackground: 0 + ambisonic: 0 + 3D: 1 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Audio/Industrial/item_destruction.wav.meta b/Assets/Audio/Industrial/item_destruction.wav.meta new file mode 100644 index 0000000..c00aa40 --- /dev/null +++ b/Assets/Audio/Industrial/item_destruction.wav.meta @@ -0,0 +1,23 @@ +fileFormatVersion: 2 +guid: 3d6753d2c02491d46b1e3491e535ebcf +AudioImporter: + externalObjects: {} + serializedVersion: 7 + defaultSettings: + serializedVersion: 2 + loadType: 0 + sampleRateSetting: 0 + sampleRateOverride: 44100 + compressionFormat: 1 + quality: 1 + conversionMode: 0 + preloadAudioData: 0 + platformSettingOverrides: {} + forceToMono: 0 + normalize: 1 + loadInBackground: 0 + ambisonic: 0 + 3D: 1 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Audio/Industrial/magnet_down.wav.meta b/Assets/Audio/Industrial/magnet_down.wav.meta new file mode 100644 index 0000000..79fc5d4 --- /dev/null +++ b/Assets/Audio/Industrial/magnet_down.wav.meta @@ -0,0 +1,23 @@ +fileFormatVersion: 2 +guid: 7fbbac5fcafaf4a41b739329bbc6edd0 +AudioImporter: + externalObjects: {} + serializedVersion: 7 + defaultSettings: + serializedVersion: 2 + loadType: 0 + sampleRateSetting: 0 + sampleRateOverride: 44100 + compressionFormat: 1 + quality: 1 + conversionMode: 0 + preloadAudioData: 0 + platformSettingOverrides: {} + forceToMono: 0 + normalize: 1 + loadInBackground: 0 + ambisonic: 0 + 3D: 1 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Audio/Industrial/magnet_move.wav.meta b/Assets/Audio/Industrial/magnet_move.wav.meta new file mode 100644 index 0000000..fa8f99d --- /dev/null +++ b/Assets/Audio/Industrial/magnet_move.wav.meta @@ -0,0 +1,23 @@ +fileFormatVersion: 2 +guid: d6afda54d6529b94ca2c292ece94485b +AudioImporter: + externalObjects: {} + serializedVersion: 7 + defaultSettings: + serializedVersion: 2 + loadType: 0 + sampleRateSetting: 0 + sampleRateOverride: 44100 + compressionFormat: 1 + quality: 1 + conversionMode: 0 + preloadAudioData: 0 + platformSettingOverrides: {} + forceToMono: 0 + normalize: 1 + loadInBackground: 0 + ambisonic: 0 + 3D: 1 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Audio/Industrial/magnet_pulse.wav.meta b/Assets/Audio/Industrial/magnet_pulse.wav.meta new file mode 100644 index 0000000..963ce80 --- /dev/null +++ b/Assets/Audio/Industrial/magnet_pulse.wav.meta @@ -0,0 +1,23 @@ +fileFormatVersion: 2 +guid: 9c64f5512636e5041be8b32edbd00295 +AudioImporter: + externalObjects: {} + serializedVersion: 7 + defaultSettings: + serializedVersion: 2 + loadType: 0 + sampleRateSetting: 0 + sampleRateOverride: 44100 + compressionFormat: 1 + quality: 1 + conversionMode: 0 + preloadAudioData: 0 + platformSettingOverrides: {} + forceToMono: 0 + normalize: 1 + loadInBackground: 0 + ambisonic: 0 + 3D: 1 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Audio/Industrial/magnet_up.wav.meta b/Assets/Audio/Industrial/magnet_up.wav.meta new file mode 100644 index 0000000..856535a --- /dev/null +++ b/Assets/Audio/Industrial/magnet_up.wav.meta @@ -0,0 +1,23 @@ +fileFormatVersion: 2 +guid: 132ac16bef662a34d85cc90d16d45a23 +AudioImporter: + externalObjects: {} + serializedVersion: 7 + defaultSettings: + serializedVersion: 2 + loadType: 0 + sampleRateSetting: 0 + sampleRateOverride: 44100 + compressionFormat: 1 + quality: 1 + conversionMode: 0 + preloadAudioData: 0 + platformSettingOverrides: {} + forceToMono: 0 + normalize: 1 + loadInBackground: 0 + ambisonic: 0 + 3D: 1 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Audio/Player/death.wav.meta b/Assets/Audio/Player/death.wav.meta new file mode 100644 index 0000000..c962c0f --- /dev/null +++ b/Assets/Audio/Player/death.wav.meta @@ -0,0 +1,23 @@ +fileFormatVersion: 2 +guid: f04fbc5be67a08548bc84c730952ec83 +AudioImporter: + externalObjects: {} + serializedVersion: 7 + defaultSettings: + serializedVersion: 2 + loadType: 0 + sampleRateSetting: 0 + sampleRateOverride: 44100 + compressionFormat: 1 + quality: 1 + conversionMode: 0 + preloadAudioData: 0 + platformSettingOverrides: {} + forceToMono: 0 + normalize: 1 + loadInBackground: 0 + ambisonic: 0 + 3D: 1 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Data/Types/Basic Torus.asset b/Assets/Data/Types/Basic Torus.asset index 61666d3..71d94d0 100644 --- a/Assets/Data/Types/Basic Torus.asset +++ b/Assets/Data/Types/Basic Torus.asset @@ -19,14 +19,14 @@ MonoBehaviour: - {fileID: 8300000, guid: 88c1cb18e89f16a42b44301fca5b03be, type: 3} DefectProbabilities: - Defect: 0 - Probability: 50 + Probability: 75 - Defect: 1 - Probability: 10 + Probability: 5 - Defect: 2 - Probability: 10 + Probability: 5 - Defect: 4 - Probability: 10 + Probability: 5 - Defect: 8 - Probability: 10 + Probability: 5 - Defect: 16 - Probability: 10 + Probability: 5 diff --git a/Assets/Prefabs/Conveyor/Conveyor Segment V2.prefab b/Assets/Prefabs/Conveyor/Conveyor Segment V2.prefab index 54c7659..3d97190 100644 --- a/Assets/Prefabs/Conveyor/Conveyor Segment V2.prefab +++ b/Assets/Prefabs/Conveyor/Conveyor Segment V2.prefab @@ -1311,6 +1311,14 @@ PrefabInstance: propertyPath: m_IsActive value: 1 objectReference: {fileID: 0} + - target: {fileID: 9037283188299472763, guid: 77c4432b466fdea49b2742cc3018dd47, type: 3} + propertyPath: volume + value: 0.15 + objectReference: {fileID: 0} + - target: {fileID: 9037283188299472763, guid: 77c4432b466fdea49b2742cc3018dd47, type: 3} + propertyPath: conveyorClip + value: + objectReference: {fileID: 8300000, guid: 07668ba2dee122144a01b9d9872664e4, type: 3} m_RemovedComponents: [] m_RemovedGameObjects: [] m_AddedGameObjects: diff --git a/Assets/Prefabs/Conveyor/Product Converter 1.prefab b/Assets/Prefabs/Conveyor/Product Converter 1.prefab index 192f26d..f5f35e7 100644 --- a/Assets/Prefabs/Conveyor/Product Converter 1.prefab +++ b/Assets/Prefabs/Conveyor/Product Converter 1.prefab @@ -374,6 +374,7 @@ MonoBehaviour: CurrentHealth: 5 MaxHealth: 5 conversionDuration: 2 + conversionClip: {fileID: 8300000, guid: 470cbdb0b0814004e999ee2afb58e46c, type: 3} refuseLauncher: {fileID: 5841623345049199340} launchPower: 6 --- !u!65 &2626749768300218648 diff --git a/Assets/Scenes/Main.unity b/Assets/Scenes/Main.unity index d9d84e2..6fcdafa 100644 --- a/Assets/Scenes/Main.unity +++ b/Assets/Scenes/Main.unity @@ -388,84 +388,6 @@ Transform: m_CorrespondingSourceObject: {fileID: 9072778288000056937, guid: a3cb7267f99421c4b9912896d1eb7a41, type: 3} m_PrefabInstance: {fileID: 27108058} m_PrefabAsset: {fileID: 0} ---- !u!1001 &27502696 -PrefabInstance: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_Modification: - serializedVersion: 3 - m_TransformParent: {fileID: 1157930367} - m_Modifications: - - target: {fileID: 25288874924476089, guid: 52253a366fba6644b8983c5cf7fbfc9f, type: 3} - propertyPath: m_Name - value: Walkway 2m - objectReference: {fileID: 0} - - target: {fileID: 1825052353747865940, guid: 52253a366fba6644b8983c5cf7fbfc9f, type: 3} - propertyPath: m_IsActive - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 3881001922044049855, guid: 52253a366fba6644b8983c5cf7fbfc9f, type: 3} - propertyPath: m_IsActive - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 4626647624635935874, guid: 52253a366fba6644b8983c5cf7fbfc9f, type: 3} - propertyPath: m_LocalPosition.x - value: -0.875 - objectReference: {fileID: 0} - - target: {fileID: 4626647624635935874, guid: 52253a366fba6644b8983c5cf7fbfc9f, type: 3} - propertyPath: m_LocalPosition.y - value: 2.25 - objectReference: {fileID: 0} - - target: {fileID: 4626647624635935874, guid: 52253a366fba6644b8983c5cf7fbfc9f, type: 3} - propertyPath: m_LocalPosition.z - value: 2.5 - objectReference: {fileID: 0} - - target: {fileID: 4626647624635935874, guid: 52253a366fba6644b8983c5cf7fbfc9f, type: 3} - propertyPath: m_LocalRotation.w - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 4626647624635935874, guid: 52253a366fba6644b8983c5cf7fbfc9f, type: 3} - propertyPath: m_LocalRotation.x - value: -0 - objectReference: {fileID: 0} - - target: {fileID: 4626647624635935874, guid: 52253a366fba6644b8983c5cf7fbfc9f, type: 3} - propertyPath: m_LocalRotation.y - value: -0 - objectReference: {fileID: 0} - - target: {fileID: 4626647624635935874, guid: 52253a366fba6644b8983c5cf7fbfc9f, type: 3} - propertyPath: m_LocalRotation.z - value: -0 - objectReference: {fileID: 0} - - target: {fileID: 4626647624635935874, guid: 52253a366fba6644b8983c5cf7fbfc9f, type: 3} - propertyPath: m_LocalEulerAnglesHint.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 4626647624635935874, guid: 52253a366fba6644b8983c5cf7fbfc9f, type: 3} - propertyPath: m_LocalEulerAnglesHint.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 4626647624635935874, guid: 52253a366fba6644b8983c5cf7fbfc9f, type: 3} - propertyPath: m_LocalEulerAnglesHint.z - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6115068343436018695, guid: 52253a366fba6644b8983c5cf7fbfc9f, type: 3} - propertyPath: m_IsActive - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 7239505773077637791, guid: 52253a366fba6644b8983c5cf7fbfc9f, type: 3} - propertyPath: m_IsActive - value: 0 - objectReference: {fileID: 0} - m_RemovedComponents: [] - m_RemovedGameObjects: [] - m_AddedGameObjects: [] - m_AddedComponents: [] - m_SourcePrefab: {fileID: 100100000, guid: 52253a366fba6644b8983c5cf7fbfc9f, type: 3} ---- !u!4 &27502697 stripped -Transform: - m_CorrespondingSourceObject: {fileID: 4626647624635935874, guid: 52253a366fba6644b8983c5cf7fbfc9f, type: 3} - m_PrefabInstance: {fileID: 27502696} - m_PrefabAsset: {fileID: 0} --- !u!1001 &42875062 PrefabInstance: m_ObjectHideFlags: 0 @@ -2345,73 +2267,6 @@ MeshRenderer: m_SortingLayer: 0 m_SortingOrder: 0 m_AdditionalVertexStreams: {fileID: 0} ---- !u!1001 &311456387 -PrefabInstance: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_Modification: - serializedVersion: 3 - m_TransformParent: {fileID: 1157930367} - m_Modifications: - - target: {fileID: 2145288034412905379, guid: af60b7e3af5665f40845fb5cd5ae16a7, type: 3} - propertyPath: m_Name - value: Conveyor Segment (1) - objectReference: {fileID: 0} - - target: {fileID: 8393158071281731187, guid: af60b7e3af5665f40845fb5cd5ae16a7, type: 3} - propertyPath: m_LocalScale.z - value: 11.374799 - objectReference: {fileID: 0} - - target: {fileID: 8393158071281731187, guid: af60b7e3af5665f40845fb5cd5ae16a7, type: 3} - propertyPath: m_LocalPosition.x - value: -13.0625 - objectReference: {fileID: 0} - - target: {fileID: 8393158071281731187, guid: af60b7e3af5665f40845fb5cd5ae16a7, type: 3} - propertyPath: m_LocalPosition.y - value: 1.125 - objectReference: {fileID: 0} - - target: {fileID: 8393158071281731187, guid: af60b7e3af5665f40845fb5cd5ae16a7, type: 3} - propertyPath: m_LocalPosition.z - value: 2.4999986 - objectReference: {fileID: 0} - - target: {fileID: 8393158071281731187, guid: af60b7e3af5665f40845fb5cd5ae16a7, type: 3} - propertyPath: m_LocalRotation.w - value: 0.7071068 - objectReference: {fileID: 0} - - target: {fileID: 8393158071281731187, guid: af60b7e3af5665f40845fb5cd5ae16a7, type: 3} - propertyPath: m_LocalRotation.x - value: -0 - objectReference: {fileID: 0} - - target: {fileID: 8393158071281731187, guid: af60b7e3af5665f40845fb5cd5ae16a7, type: 3} - propertyPath: m_LocalRotation.y - value: -0.7071068 - objectReference: {fileID: 0} - - target: {fileID: 8393158071281731187, guid: af60b7e3af5665f40845fb5cd5ae16a7, type: 3} - propertyPath: m_LocalRotation.z - value: -0 - objectReference: {fileID: 0} - - target: {fileID: 8393158071281731187, guid: af60b7e3af5665f40845fb5cd5ae16a7, type: 3} - propertyPath: m_LocalEulerAnglesHint.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8393158071281731187, guid: af60b7e3af5665f40845fb5cd5ae16a7, type: 3} - propertyPath: m_LocalEulerAnglesHint.y - value: -90 - objectReference: {fileID: 0} - - target: {fileID: 8393158071281731187, guid: af60b7e3af5665f40845fb5cd5ae16a7, type: 3} - propertyPath: m_LocalEulerAnglesHint.z - value: 0 - objectReference: {fileID: 0} - m_RemovedComponents: - - {fileID: 5758010343525673458, guid: af60b7e3af5665f40845fb5cd5ae16a7, type: 3} - m_RemovedGameObjects: [] - m_AddedGameObjects: [] - m_AddedComponents: [] - m_SourcePrefab: {fileID: 100100000, guid: af60b7e3af5665f40845fb5cd5ae16a7, type: 3} ---- !u!4 &311456388 stripped -Transform: - m_CorrespondingSourceObject: {fileID: 8393158071281731187, guid: af60b7e3af5665f40845fb5cd5ae16a7, type: 3} - m_PrefabInstance: {fileID: 311456387} - m_PrefabAsset: {fileID: 0} --- !u!1001 &345079299 PrefabInstance: m_ObjectHideFlags: 0 @@ -3860,84 +3715,6 @@ Transform: m_Children: [] m_Father: {fileID: 1978855172} m_LocalEulerAnglesHint: {x: 0, y: 0, z: -90} ---- !u!1001 &498283031 -PrefabInstance: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_Modification: - serializedVersion: 3 - m_TransformParent: {fileID: 1157930367} - m_Modifications: - - target: {fileID: 418972016787197328, guid: 164bcef21fc47d947ac09a8922e04c53, type: 3} - propertyPath: m_LocalPosition.x - value: -10.875 - objectReference: {fileID: 0} - - target: {fileID: 418972016787197328, guid: 164bcef21fc47d947ac09a8922e04c53, type: 3} - propertyPath: m_LocalPosition.y - value: 1.75 - objectReference: {fileID: 0} - - target: {fileID: 418972016787197328, guid: 164bcef21fc47d947ac09a8922e04c53, type: 3} - propertyPath: m_LocalPosition.z - value: 2.375 - objectReference: {fileID: 0} - - target: {fileID: 418972016787197328, guid: 164bcef21fc47d947ac09a8922e04c53, type: 3} - propertyPath: m_LocalRotation.w - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 418972016787197328, guid: 164bcef21fc47d947ac09a8922e04c53, type: 3} - propertyPath: m_LocalRotation.x - value: -0 - objectReference: {fileID: 0} - - target: {fileID: 418972016787197328, guid: 164bcef21fc47d947ac09a8922e04c53, type: 3} - propertyPath: m_LocalRotation.y - value: -0 - objectReference: {fileID: 0} - - target: {fileID: 418972016787197328, guid: 164bcef21fc47d947ac09a8922e04c53, type: 3} - propertyPath: m_LocalRotation.z - value: -0 - objectReference: {fileID: 0} - - target: {fileID: 418972016787197328, guid: 164bcef21fc47d947ac09a8922e04c53, type: 3} - propertyPath: m_LocalEulerAnglesHint.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 418972016787197328, guid: 164bcef21fc47d947ac09a8922e04c53, type: 3} - propertyPath: m_LocalEulerAnglesHint.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 418972016787197328, guid: 164bcef21fc47d947ac09a8922e04c53, type: 3} - propertyPath: m_LocalEulerAnglesHint.z - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 743343660021192500, guid: 164bcef21fc47d947ac09a8922e04c53, type: 3} - propertyPath: m_LocalScale.z - value: 2.74997 - objectReference: {fileID: 0} - - target: {fileID: 2119179403709042533, guid: 164bcef21fc47d947ac09a8922e04c53, type: 3} - propertyPath: m_LocalPosition.z - value: 1.25 - objectReference: {fileID: 0} - - target: {fileID: 3297724367138532451, guid: 164bcef21fc47d947ac09a8922e04c53, type: 3} - propertyPath: m_LocalPosition.z - value: -1 - objectReference: {fileID: 0} - - target: {fileID: 3988703939439567087, guid: 164bcef21fc47d947ac09a8922e04c53, type: 3} - propertyPath: m_Size.z - value: 2.2901745 - objectReference: {fileID: 0} - - target: {fileID: 8140899253408661228, guid: 164bcef21fc47d947ac09a8922e04c53, type: 3} - propertyPath: m_Name - value: Defect Detector - objectReference: {fileID: 0} - m_RemovedComponents: [] - m_RemovedGameObjects: [] - m_AddedGameObjects: [] - m_AddedComponents: [] - m_SourcePrefab: {fileID: 100100000, guid: 164bcef21fc47d947ac09a8922e04c53, type: 3} ---- !u!4 &498283032 stripped -Transform: - m_CorrespondingSourceObject: {fileID: 418972016787197328, guid: 164bcef21fc47d947ac09a8922e04c53, type: 3} - m_PrefabInstance: {fileID: 498283031} - m_PrefabAsset: {fileID: 0} --- !u!1001 &511136941 PrefabInstance: m_ObjectHideFlags: 0 @@ -4781,73 +4558,6 @@ MeshRenderer: m_SortingLayer: 0 m_SortingOrder: 0 m_AdditionalVertexStreams: {fileID: 0} ---- !u!1001 &563503057 -PrefabInstance: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_Modification: - serializedVersion: 3 - m_TransformParent: {fileID: 1157930367} - m_Modifications: - - target: {fileID: 2145288034412905379, guid: af60b7e3af5665f40845fb5cd5ae16a7, type: 3} - propertyPath: m_Name - value: Conveyor Segment - objectReference: {fileID: 0} - - target: {fileID: 8393158071281731187, guid: af60b7e3af5665f40845fb5cd5ae16a7, type: 3} - propertyPath: m_LocalScale.z - value: 11.374799 - objectReference: {fileID: 0} - - target: {fileID: 8393158071281731187, guid: af60b7e3af5665f40845fb5cd5ae16a7, type: 3} - propertyPath: m_LocalPosition.x - value: -1.6875 - objectReference: {fileID: 0} - - target: {fileID: 8393158071281731187, guid: af60b7e3af5665f40845fb5cd5ae16a7, type: 3} - propertyPath: m_LocalPosition.y - value: 1.125 - objectReference: {fileID: 0} - - target: {fileID: 8393158071281731187, guid: af60b7e3af5665f40845fb5cd5ae16a7, type: 3} - propertyPath: m_LocalPosition.z - value: 2.5 - objectReference: {fileID: 0} - - target: {fileID: 8393158071281731187, guid: af60b7e3af5665f40845fb5cd5ae16a7, type: 3} - propertyPath: m_LocalRotation.w - value: 0.7071068 - objectReference: {fileID: 0} - - target: {fileID: 8393158071281731187, guid: af60b7e3af5665f40845fb5cd5ae16a7, type: 3} - propertyPath: m_LocalRotation.x - value: -0 - objectReference: {fileID: 0} - - target: {fileID: 8393158071281731187, guid: af60b7e3af5665f40845fb5cd5ae16a7, type: 3} - propertyPath: m_LocalRotation.y - value: -0.7071068 - objectReference: {fileID: 0} - - target: {fileID: 8393158071281731187, guid: af60b7e3af5665f40845fb5cd5ae16a7, type: 3} - propertyPath: m_LocalRotation.z - value: -0 - objectReference: {fileID: 0} - - target: {fileID: 8393158071281731187, guid: af60b7e3af5665f40845fb5cd5ae16a7, type: 3} - propertyPath: m_LocalEulerAnglesHint.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8393158071281731187, guid: af60b7e3af5665f40845fb5cd5ae16a7, type: 3} - propertyPath: m_LocalEulerAnglesHint.y - value: -90 - objectReference: {fileID: 0} - - target: {fileID: 8393158071281731187, guid: af60b7e3af5665f40845fb5cd5ae16a7, type: 3} - propertyPath: m_LocalEulerAnglesHint.z - value: 0 - objectReference: {fileID: 0} - m_RemovedComponents: - - {fileID: 5758010343525673458, guid: af60b7e3af5665f40845fb5cd5ae16a7, type: 3} - m_RemovedGameObjects: [] - m_AddedGameObjects: [] - m_AddedComponents: [] - m_SourcePrefab: {fileID: 100100000, guid: af60b7e3af5665f40845fb5cd5ae16a7, type: 3} ---- !u!4 &563503058 stripped -Transform: - m_CorrespondingSourceObject: {fileID: 8393158071281731187, guid: af60b7e3af5665f40845fb5cd5ae16a7, type: 3} - m_PrefabInstance: {fileID: 563503057} - m_PrefabAsset: {fileID: 0} --- !u!1001 &596720852 PrefabInstance: m_ObjectHideFlags: 0 @@ -6637,186 +6347,6 @@ Transform: m_CorrespondingSourceObject: {fileID: 8520706692138482496, guid: 3c35cdf4a8f85d34680d2d1f3f242650, type: 3} m_PrefabInstance: {fileID: 911376353} m_PrefabAsset: {fileID: 0} ---- !u!1 &923119683 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 923119684} - - component: {fileID: 923119686} - - component: {fileID: 923119685} - 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 &923119684 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 923119683} - m_LocalRotation: {x: -0, y: -1, z: -0, w: 0.00000008940696} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 1157930367} - m_LocalEulerAnglesHint: {x: 0, y: -180, z: 0} - m_AnchorMin: {x: 0.5, y: 0.5} - m_AnchorMax: {x: 0.5, y: 0.5} - m_AnchoredPosition: {x: 0, y: 6.125} - m_SizeDelta: {x: 20, y: 5} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &923119685 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 923119683} - 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: 'Two or three lines - - Turns - - Detector with signal on one of the - lines - - Converter or two - -' - m_isRightToLeft: 0 - m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} - m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} - m_fontSharedMaterials: [] - m_fontMaterial: {fileID: 0} - m_fontMaterials: [] - m_fontColor32: - serializedVersion: 2 - rgba: 4294967295 - m_fontColor: {r: 1, g: 1, b: 1, 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: 5 - m_fontSizeBase: 5 - 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: 0, y: 0, z: 0, w: 0} - m_isUsingLegacyAnimationComponent: 0 - m_isVolumetricText: 0 - _SortingLayer: 0 - _SortingLayerID: 0 - _SortingOrder: 0 - m_hasFontAssetChanged: 0 - m_renderer: {fileID: 923119686} - m_maskType: 0 ---- !u!23 &923119686 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 923119683} - 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: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, 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!1001 &930744135 PrefabInstance: m_ObjectHideFlags: 0 @@ -7423,104 +6953,6 @@ Transform: m_CorrespondingSourceObject: {fileID: 8393158071281731187, guid: d594a9afcbadc3646be0b679de9ca105, type: 3} m_PrefabInstance: {fileID: 1029618312} m_PrefabAsset: {fileID: 0} ---- !u!1001 &1030377724 -PrefabInstance: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_Modification: - serializedVersion: 3 - m_TransformParent: {fileID: 1157930367} - m_Modifications: - - target: {fileID: 2483613655511574791, guid: a3cb7267f99421c4b9912896d1eb7a41, type: 3} - propertyPath: m_Name - value: Product Spawner - objectReference: {fileID: 0} - - target: {fileID: 6186656074767359943, guid: a3cb7267f99421c4b9912896d1eb7a41, type: 3} - propertyPath: ProductionPhases.Array.size - value: 2 - objectReference: {fileID: 0} - - target: {fileID: 6186656074767359943, guid: a3cb7267f99421c4b9912896d1eb7a41, type: 3} - propertyPath: ProductionPhases.Array.data[0].Type - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6186656074767359943, guid: a3cb7267f99421c4b9912896d1eb7a41, type: 3} - propertyPath: ProductionPhases.Array.data[1].Type - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 6186656074767359943, guid: a3cb7267f99421c4b9912896d1eb7a41, type: 3} - propertyPath: ProductionPhases.Array.data[0].Duration - value: 5 - objectReference: {fileID: 0} - - target: {fileID: 6186656074767359943, guid: a3cb7267f99421c4b9912896d1eb7a41, type: 3} - propertyPath: ProductionPhases.Array.data[1].Duration - value: 40 - objectReference: {fileID: 0} - - target: {fileID: 6186656074767359943, guid: a3cb7267f99421c4b9912896d1eb7a41, type: 3} - propertyPath: ProductionPhases.Array.data[0].ProductType - value: - objectReference: {fileID: 0} - - target: {fileID: 6186656074767359943, guid: a3cb7267f99421c4b9912896d1eb7a41, type: 3} - propertyPath: ProductionPhases.Array.data[1].ProductType - value: - objectReference: {fileID: 11400000, guid: 42240b227563f074aa0dd8fee3c0cb35, type: 2} - - target: {fileID: 6186656074767359943, guid: a3cb7267f99421c4b9912896d1eb7a41, type: 3} - propertyPath: ProductionPhases.Array.data[0].TotalSpawnCount - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 6186656074767359943, guid: a3cb7267f99421c4b9912896d1eb7a41, type: 3} - propertyPath: ProductionPhases.Array.data[1].TotalSpawnCount - value: 15 - objectReference: {fileID: 0} - - target: {fileID: 9072778288000056937, guid: a3cb7267f99421c4b9912896d1eb7a41, type: 3} - propertyPath: m_LocalPosition.x - value: 3.25 - objectReference: {fileID: 0} - - target: {fileID: 9072778288000056937, guid: a3cb7267f99421c4b9912896d1eb7a41, type: 3} - propertyPath: m_LocalPosition.y - value: 1.75 - objectReference: {fileID: 0} - - target: {fileID: 9072778288000056937, guid: a3cb7267f99421c4b9912896d1eb7a41, type: 3} - propertyPath: m_LocalPosition.z - value: 2.5 - objectReference: {fileID: 0} - - target: {fileID: 9072778288000056937, guid: a3cb7267f99421c4b9912896d1eb7a41, type: 3} - propertyPath: m_LocalRotation.w - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 9072778288000056937, guid: a3cb7267f99421c4b9912896d1eb7a41, type: 3} - propertyPath: m_LocalRotation.x - value: -0 - objectReference: {fileID: 0} - - target: {fileID: 9072778288000056937, guid: a3cb7267f99421c4b9912896d1eb7a41, type: 3} - propertyPath: m_LocalRotation.y - value: -0 - objectReference: {fileID: 0} - - target: {fileID: 9072778288000056937, guid: a3cb7267f99421c4b9912896d1eb7a41, type: 3} - propertyPath: m_LocalRotation.z - value: -0 - objectReference: {fileID: 0} - - target: {fileID: 9072778288000056937, guid: a3cb7267f99421c4b9912896d1eb7a41, type: 3} - propertyPath: m_LocalEulerAnglesHint.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 9072778288000056937, guid: a3cb7267f99421c4b9912896d1eb7a41, type: 3} - propertyPath: m_LocalEulerAnglesHint.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 9072778288000056937, guid: a3cb7267f99421c4b9912896d1eb7a41, type: 3} - propertyPath: m_LocalEulerAnglesHint.z - value: 0 - objectReference: {fileID: 0} - m_RemovedComponents: [] - m_RemovedGameObjects: [] - m_AddedGameObjects: [] - m_AddedComponents: [] - m_SourcePrefab: {fileID: 100100000, guid: a3cb7267f99421c4b9912896d1eb7a41, type: 3} ---- !u!4 &1030377725 stripped -Transform: - m_CorrespondingSourceObject: {fileID: 9072778288000056937, guid: a3cb7267f99421c4b9912896d1eb7a41, type: 3} - m_PrefabInstance: {fileID: 1030377724} - m_PrefabAsset: {fileID: 0} --- !u!1001 &1039737969 PrefabInstance: m_ObjectHideFlags: 0 @@ -8089,72 +7521,6 @@ Transform: m_CorrespondingSourceObject: {fileID: 6238139087991197689, guid: b5bb2f074e9e2c04baf833ea6393a1f6, type: 3} m_PrefabInstance: {fileID: 1110825840} m_PrefabAsset: {fileID: 0} ---- !u!1001 &1111975973 -PrefabInstance: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_Modification: - serializedVersion: 3 - m_TransformParent: {fileID: 1157930367} - m_Modifications: - - target: {fileID: 5578451197856738425, guid: b5bb2f074e9e2c04baf833ea6393a1f6, type: 3} - propertyPath: m_Name - value: Product Receiver - objectReference: {fileID: 0} - - target: {fileID: 5578451197856738425, guid: b5bb2f074e9e2c04baf833ea6393a1f6, type: 3} - propertyPath: m_IsActive - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 6238139087991197689, guid: b5bb2f074e9e2c04baf833ea6393a1f6, type: 3} - propertyPath: m_LocalPosition.x - value: -17.75 - objectReference: {fileID: 0} - - target: {fileID: 6238139087991197689, guid: b5bb2f074e9e2c04baf833ea6393a1f6, type: 3} - propertyPath: m_LocalPosition.y - value: 1.75 - objectReference: {fileID: 0} - - target: {fileID: 6238139087991197689, guid: b5bb2f074e9e2c04baf833ea6393a1f6, type: 3} - propertyPath: m_LocalPosition.z - value: 2.5 - objectReference: {fileID: 0} - - target: {fileID: 6238139087991197689, guid: b5bb2f074e9e2c04baf833ea6393a1f6, type: 3} - propertyPath: m_LocalRotation.w - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 6238139087991197689, guid: b5bb2f074e9e2c04baf833ea6393a1f6, type: 3} - propertyPath: m_LocalRotation.x - value: -0 - objectReference: {fileID: 0} - - target: {fileID: 6238139087991197689, guid: b5bb2f074e9e2c04baf833ea6393a1f6, type: 3} - propertyPath: m_LocalRotation.y - value: -0 - objectReference: {fileID: 0} - - target: {fileID: 6238139087991197689, guid: b5bb2f074e9e2c04baf833ea6393a1f6, type: 3} - propertyPath: m_LocalRotation.z - value: -0 - objectReference: {fileID: 0} - - target: {fileID: 6238139087991197689, guid: b5bb2f074e9e2c04baf833ea6393a1f6, type: 3} - propertyPath: m_LocalEulerAnglesHint.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6238139087991197689, guid: b5bb2f074e9e2c04baf833ea6393a1f6, type: 3} - propertyPath: m_LocalEulerAnglesHint.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6238139087991197689, guid: b5bb2f074e9e2c04baf833ea6393a1f6, type: 3} - propertyPath: m_LocalEulerAnglesHint.z - value: 0 - objectReference: {fileID: 0} - m_RemovedComponents: [] - m_RemovedGameObjects: [] - m_AddedGameObjects: [] - m_AddedComponents: [] - m_SourcePrefab: {fileID: 100100000, guid: b5bb2f074e9e2c04baf833ea6393a1f6, type: 3} ---- !u!4 &1111975974 stripped -Transform: - m_CorrespondingSourceObject: {fileID: 6238139087991197689, guid: b5bb2f074e9e2c04baf833ea6393a1f6, type: 3} - m_PrefabInstance: {fileID: 1111975973} - m_PrefabAsset: {fileID: 0} --- !u!1001 &1129604981 PrefabInstance: m_ObjectHideFlags: 0 @@ -8375,60 +7741,6 @@ Transform: m_CorrespondingSourceObject: {fileID: 8393158071281731187, guid: d594a9afcbadc3646be0b679de9ca105, type: 3} m_PrefabInstance: {fileID: 1142294224} m_PrefabAsset: {fileID: 0} ---- !u!1 &1157930365 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1157930367} - - component: {fileID: 1157930366} - m_Layer: 0 - m_Name: Level 2 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 0 ---- !u!114 &1157930366 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1157930365} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 71cd04e41258435d9d03d9b67cb4b7ed, type: 3} - m_Name: - m_EditorClassIdentifier: - ActiveAtStages: 0 ---- !u!4 &1157930367 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1157930365} - 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: 563503058} - - {fileID: 311456388} - - {fileID: 1030377725} - - {fileID: 1111975974} - - {fileID: 2129871023} - - {fileID: 27502697} - - {fileID: 1350957812} - - {fileID: 498283032} - - {fileID: 923119684} - m_Father: {fileID: 1503113266} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1001 &1159577085 PrefabInstance: m_ObjectHideFlags: 0 @@ -9254,68 +8566,6 @@ Transform: m_CorrespondingSourceObject: {fileID: 5260530439957074424, guid: ae50320a2d4c84c4391086045d06a9c9, type: 3} m_PrefabInstance: {fileID: 1340590127} m_PrefabAsset: {fileID: 0} ---- !u!1001 &1350957811 -PrefabInstance: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_Modification: - serializedVersion: 3 - m_TransformParent: {fileID: 1157930367} - m_Modifications: - - target: {fileID: 5175999938582883548, guid: 77ee7ec75f83819418bba995d0824dc4, type: 3} - propertyPath: m_Name - value: Stairs Basic (1) - objectReference: {fileID: 0} - - target: {fileID: 7806859308007633956, guid: 77ee7ec75f83819418bba995d0824dc4, type: 3} - propertyPath: m_LocalPosition.x - value: -0.875 - objectReference: {fileID: 0} - - target: {fileID: 7806859308007633956, guid: 77ee7ec75f83819418bba995d0824dc4, type: 3} - propertyPath: m_LocalPosition.y - value: 1.75 - objectReference: {fileID: 0} - - target: {fileID: 7806859308007633956, guid: 77ee7ec75f83819418bba995d0824dc4, type: 3} - propertyPath: m_LocalPosition.z - value: 0.875 - objectReference: {fileID: 0} - - target: {fileID: 7806859308007633956, guid: 77ee7ec75f83819418bba995d0824dc4, type: 3} - propertyPath: m_LocalRotation.w - value: 0 - 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: 1 - 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: 150 - objectReference: {fileID: 0} - - target: {fileID: 7806859308007633956, guid: 77ee7ec75f83819418bba995d0824dc4, type: 3} - propertyPath: m_LocalEulerAnglesHint.z - value: 0 - objectReference: {fileID: 0} - m_RemovedComponents: [] - m_RemovedGameObjects: [] - m_AddedGameObjects: [] - m_AddedComponents: [] - m_SourcePrefab: {fileID: 100100000, guid: 77ee7ec75f83819418bba995d0824dc4, type: 3} ---- !u!4 &1350957812 stripped -Transform: - m_CorrespondingSourceObject: {fileID: 7806859308007633956, guid: 77ee7ec75f83819418bba995d0824dc4, type: 3} - m_PrefabInstance: {fileID: 1350957811} - m_PrefabAsset: {fileID: 0} --- !u!1001 &1357868502 PrefabInstance: m_ObjectHideFlags: 0 @@ -10557,7 +9807,6 @@ Transform: - {fileID: 719922444} - {fileID: 956392559} - {fileID: 526237802} - - {fileID: 1157930367} - {fileID: 968306742} m_Father: {fileID: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} @@ -13624,68 +12873,6 @@ Transform: m_CorrespondingSourceObject: {fileID: 9072778288000056937, guid: a3cb7267f99421c4b9912896d1eb7a41, type: 3} m_PrefabInstance: {fileID: 2091168133} m_PrefabAsset: {fileID: 0} ---- !u!1001 &2129871022 -PrefabInstance: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_Modification: - serializedVersion: 3 - m_TransformParent: {fileID: 1157930367} - m_Modifications: - - target: {fileID: 5175999938582883548, guid: 77ee7ec75f83819418bba995d0824dc4, type: 3} - propertyPath: m_Name - value: Stairs Basic - objectReference: {fileID: 0} - - target: {fileID: 7806859308007633956, guid: 77ee7ec75f83819418bba995d0824dc4, type: 3} - propertyPath: m_LocalPosition.x - value: -0.875 - objectReference: {fileID: 0} - - target: {fileID: 7806859308007633956, guid: 77ee7ec75f83819418bba995d0824dc4, type: 3} - propertyPath: m_LocalPosition.y - value: 1.75 - objectReference: {fileID: 0} - - target: {fileID: 7806859308007633956, guid: 77ee7ec75f83819418bba995d0824dc4, type: 3} - propertyPath: m_LocalPosition.z - value: 4.125 - 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} - m_RemovedComponents: [] - m_RemovedGameObjects: [] - m_AddedGameObjects: [] - m_AddedComponents: [] - m_SourcePrefab: {fileID: 100100000, guid: 77ee7ec75f83819418bba995d0824dc4, type: 3} ---- !u!4 &2129871023 stripped -Transform: - m_CorrespondingSourceObject: {fileID: 7806859308007633956, guid: 77ee7ec75f83819418bba995d0824dc4, type: 3} - m_PrefabInstance: {fileID: 2129871022} - m_PrefabAsset: {fileID: 0} --- !u!1001 &2137172133 PrefabInstance: m_ObjectHideFlags: 0 diff --git a/Assets/Scripts/ConveyorBelt.cs b/Assets/Scripts/ConveyorBelt.cs index 8603700..fdc222f 100644 --- a/Assets/Scripts/ConveyorBelt.cs +++ b/Assets/Scripts/ConveyorBelt.cs @@ -2,7 +2,7 @@ using System.Collections; using System.Collections.Generic; using UnityEngine; -public class ConveyorBelt : MonoBehaviour +public class ConveyorBelt : MonoBehaviour, IResetable { Rigidbody _rb; Rigidbody rb { get { if (!_rb) _rb = GetComponent(); return _rb; } } @@ -15,8 +15,30 @@ public class ConveyorBelt : MonoBehaviour public float scrollingTextureSpeedMult = 1; public Renderer scrollingTextureRenderer; + public AudioClip conveyorClip; + public float volume = 0.25f; + private AudioSource _audioSource; + + public void ResetMachine() + { + if (_audioSource) + { + _audioSource.Stop(); + Destroy(_audioSource.gameObject); + _audioSource = null; + } + + if (isActiveAndEnabled) + { + _audioSource = NAudio.Play(conveyorClip, transform.position, volume); + _audioSource.loop = true; + } + } + private void Start() { + ResetMachine(); + startPosition = rb.position; //scrollingTextureSpeedMult = -0.1625f * speed; diff --git a/Assets/Scripts/Game Schedule/StagingManager.cs b/Assets/Scripts/Game Schedule/StagingManager.cs index ded8668..f406be7 100644 --- a/Assets/Scripts/Game Schedule/StagingManager.cs +++ b/Assets/Scripts/Game Schedule/StagingManager.cs @@ -33,7 +33,6 @@ public class StagingManager: MonoBehaviour foreach (var stageProp in FindObjectsOfType(true)) { - Debug.Log(stageProp.ActiveAtStages.HasFlag(stage)); stageProp.gameObject.SetActive(stageProp.ActiveAtStages.HasFlag(stage)); } } diff --git a/Assets/Scripts/Machines/Converter.cs b/Assets/Scripts/Machines/Converter.cs index 0f3345e..3602a2f 100644 --- a/Assets/Scripts/Machines/Converter.cs +++ b/Assets/Scripts/Machines/Converter.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using UnityEngine; +using UnityEngine.Serialization; public class Converter: MonoBehaviour, IResetable { @@ -17,6 +18,9 @@ public class Converter: MonoBehaviour, IResetable public float conversionDuration = 5f; private float _conversionTimer; + [FormerlySerializedAs("conversionSound")] public AudioClip conversionClip; + private AudioSource _audioSource; + public Transform refuseLauncher; public float launchPower = 10f; @@ -42,6 +46,13 @@ public class Converter: MonoBehaviour, IResetable CurrentHealth = MaxHealth; inputProducts.Clear(); + + if (_audioSource) + { + _audioSource.Stop(); + Destroy(_audioSource.gameObject); + _audioSource = null; + } } public void Update() @@ -65,6 +76,8 @@ public class Converter: MonoBehaviour, IResetable Spawner.SpawnProduct(conversionProduct, currentProduct.Defect); inputProducts.RemoveAt(0); Destroy(currentProduct); + + _audioSource = NAudio.Play(conversionClip, transform.position, 0.75f); } else {