From fb9e02efd6c1f416cc7fe3d5f064d7958ab80e26 Mon Sep 17 00:00:00 2001 From: Thibault Pouch Date: Tue, 10 Mar 2026 21:16:49 +0100 Subject: [PATCH] refactor: Update prefabs for Door, TileFloor, TileGlass, and TileWall with new components and adjustments --- Assets/Level/Prefabs/Interactives/Door.prefab | 197 +++++++++--------- Assets/Level/Prefabs/World/TileFloor.prefab | 15 +- Assets/Level/Prefabs/World/TileGlass.prefab | 17 +- Assets/Level/Prefabs/World/TileWall.prefab | 17 +- 4 files changed, 119 insertions(+), 127 deletions(-) diff --git a/Assets/Level/Prefabs/Interactives/Door.prefab b/Assets/Level/Prefabs/Interactives/Door.prefab index 07f267f..4a98327 100644 --- a/Assets/Level/Prefabs/Interactives/Door.prefab +++ b/Assets/Level/Prefabs/Interactives/Door.prefab @@ -13,8 +13,8 @@ GameObject: - component: {fileID: 3884605895522482221} - component: {fileID: 16871832050785725} - component: {fileID: 8512140229507148937} - - component: {fileID: 6734862024670495346} - component: {fileID: 6921400718617286756} + - component: {fileID: 7987102888823411772} m_Layer: 0 m_Name: Door m_TagString: Untagged @@ -30,7 +30,7 @@ Transform: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 6922175388650039756} serializedVersion: 2 - m_LocalRotation: {x: -0, y: 0.7071068, z: -0, w: 0.7071068} + m_LocalRotation: {x: 0, y: 0.7071068, z: 0, w: 0.7071068} m_LocalPosition: {x: -0.82162, y: 0, z: 0.17412949} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 @@ -154,84 +154,80 @@ MonoBehaviour: elementGroup: -1 m_TextureGroup: -1 m_SharedVertices: - - m_Vertices: 000000000d00000016000000 - - m_Vertices: 010000000400000017000000 - - m_Vertices: 020000000f00000010000000 - - m_Vertices: 030000000600000011000000 - - m_Vertices: 050000000800000015000000 - - m_Vertices: 070000000a00000013000000 - - m_Vertices: 090000000c00000014000000 - - m_Vertices: 0b0000000e00000012000000 + - m_Vertices: 00000000020000000d000000000000000000000000000000 + - m_Vertices: 010000000300000004000000000000000000000000000000 + - m_Vertices: 050000000700000008000000000000000000000000000000 + - m_Vertices: 090000000b0000000c000000000000000000000000000000 m_SharedTextures: [] m_Positions: - - {x: -0.05, y: -1, z: 0.5} - - {x: 0.05, y: -1, z: 0.5} - - {x: -0.05, y: 1, z: 0.5} - - {x: 0.05, y: 1, z: 0.5} - - {x: 0.05, y: -1, z: 0.5} - - {x: 0.05, y: -1, z: -0.5} - - {x: 0.05, y: 1, z: 0.5} - - {x: 0.05, y: 1, z: -0.5} - - {x: 0.05, y: -1, z: -0.5} - - {x: -0.05, y: -1, z: -0.5} - - {x: 0.05, y: 1, z: -0.5} - - {x: -0.05, y: 1, z: -0.5} - - {x: -0.05, y: -1, z: -0.5} - - {x: -0.05, y: -1, z: 0.5} - - {x: -0.05, y: 1, z: -0.5} - - {x: -0.05, y: 1, z: 0.5} - - {x: -0.05, y: 1, z: 0.5} - - {x: 0.05, y: 1, z: 0.5} - - {x: -0.05, y: 1, z: -0.5} - - {x: 0.05, y: 1, z: -0.5} - - {x: -0.05, y: -1, z: -0.5} - - {x: 0.05, y: -1, z: -0.5} - - {x: -0.05, y: -1, z: 0.5} - - {x: 0.05, y: -1, z: 0.5} + - {x: -0.05, y: -4, z: 4} + - {x: 0.05, y: -4, z: 4} + - {x: -0.05, y: 4, z: 4} + - {x: 0.05, y: 4, z: 4} + - {x: 0.05, y: -4, z: 4} + - {x: 0.05, y: -4, z: -4} + - {x: 0.05, y: 4, z: 4} + - {x: 0.05, y: 4, z: -4} + - {x: 0.05, y: -4, z: -4} + - {x: -0.05, y: -4, z: -4} + - {x: 0.05, y: 4, z: -4} + - {x: -0.05, y: 4, z: -4} + - {x: -0.05, y: -4, z: -4} + - {x: -0.05, y: -4, z: 4} + - {x: -0.05, y: 4, z: -4} + - {x: -0.05, y: 4, z: 4} + - {x: -0.05, y: 4, z: 4} + - {x: 0.05, y: 4, z: 4} + - {x: -0.05, y: 4, z: -4} + - {x: 0.05, y: 4, z: -4} + - {x: -0.05, y: -4, z: -4} + - {x: 0.05, y: -4, z: -4} + - {x: -0.05, y: -4, z: 4} + - {x: 0.05, y: -4, z: 4} m_Textures0: - - {x: 0.1, y: -1} - - {x: 0, y: -1} - - {x: 0.1, y: 1} - - {x: 0, y: 1} - - {x: 1, y: -1} - - {x: 0, y: -1} - - {x: 1, y: 1} - - {x: 0, y: 1} - - {x: 0.1, y: -1} - - {x: 0, y: -1} - - {x: 0.1, y: 1} - - {x: 0, y: 1} - - {x: 1, y: -1} - - {x: 0, y: -1} - - {x: 1, y: 1} - - {x: 0, y: 1} + - {x: 0, y: -7} + - {x: 0.1, y: -7} - {x: 0, y: 1} - {x: 0.1, y: 1} + - {x: 8, y: -7} + - {x: 0, y: -7} + - {x: 8, y: 1} - {x: 0, y: 0} - - {x: 0.1, y: 0} - - {x: 0.1, y: 0} - - {x: 0, y: 0} + - {x: 0.1, y: -7} + - {x: 0, y: -7} + - {x: 0.1, y: 1} + - {x: 0, y: 1} + - {x: 8, y: -7} + - {x: 0, y: -7} + - {x: 8, y: 0} + - {x: 0, y: 1} + - {x: 0, y: 1} + - {x: 0.1, y: 1} + - {x: 0, y: -7} + - {x: 0.1, y: -7} + - {x: 0.1, y: -7} + - {x: 0, y: -7} - {x: 0.1, y: 1} - {x: 0, y: 1} m_Textures2: [] m_Textures3: [] m_Tangents: - - {x: -1, y: 0, z: 0, w: -1} - - {x: -1, y: 0, z: 0, w: -1} - - {x: -1, y: 0, z: 0, w: -1} - - {x: -1, y: 0, z: 0, w: -1} - - {x: 0, y: 0, z: 1, w: -1} - - {x: 0, y: 0, z: 1, w: -1} - - {x: 0, y: 0, z: 1, w: -1} - - {x: 0, y: 0, z: 1, w: -1} - - {x: 1, y: 0, z: 0, w: -1} - - {x: 1, y: 0, z: 0, w: -1} - - {x: 1, y: 0, z: 0, w: -1} - - {x: 1, y: 0, z: 0, w: -1} - - {x: 0, y: 0, z: -1, w: -1} - - {x: 0, y: 0, z: -1, w: -1} - - {x: 0, y: 0, z: -1, w: -1} - - {x: 0, y: 0, z: -1, w: -1} + - {x: -0, y: 1, z: 0, w: 1} + - {x: -0, y: 1, z: 0, w: 1} + - {x: -0, y: 1, z: 0, w: 1} + - {x: -0, y: 1, z: 0, w: 1} + - {x: -0, y: 1, z: 0, w: 1} + - {x: -0, y: 1, z: 0, w: 1} + - {x: -0, y: 1, z: 0, w: 1} + - {x: -0, y: 1, z: 0, w: 1} + - {x: -0, y: 1, z: 0, w: 1} + - {x: -0, y: 1, z: 0, w: 1} + - {x: -0, y: 1, z: 0, w: 1} + - {x: -0, y: 1, z: 0, w: 1} + - {x: -0, y: 1, z: 0, w: 1} + - {x: -0, y: 1, z: 0, w: 1} + - {x: -0, y: 1, z: 0, w: 1} + - {x: -0, y: 1, z: 0, w: 1} - {x: 1, y: 0, z: 0, w: -1} - {x: 1, y: 0, z: 0, w: -1} - {x: 1, y: 0, z: 0, w: -1} @@ -249,7 +245,7 @@ MonoBehaviour: m_PreserveMeshAssetOnDestroy: 0 assetGuid: m_Mesh: {fileID: 0} - m_VersionIndex: 23 + m_VersionIndex: 59 m_IsSelectable: 1 m_SelectedFaces: m_SelectedEdges: [] @@ -269,8 +265,8 @@ MonoBehaviour: m_Shape: rid: 1325630791375913023 m_ShapeRotation: {x: 0, y: 0, z: 0, w: 1} - m_UnmodifiedMeshVersion: 23 - m_Size: {x: 0.1, y: 2, z: 1} + m_UnmodifiedMeshVersion: 59 + m_Size: {x: 0.1, y: 8, z: 8} m_LocalCenter: {x: 0, y: 0, z: 0} references: version: 2 @@ -335,8 +331,31 @@ MeshFilter: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 6922175388650039756} m_Mesh: {fileID: 0} ---- !u!64 &6734862024670495346 -MeshCollider: +--- !u!114 &6921400718617286756 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6922175388650039756} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 0cc6c36a261296f4c82e315da147ba93, type: 3} + m_Name: + m_EditorClassIdentifier: Assembly-CSharp::SlidingDoor + axis: 1 + direction: -1 + slideDistance: 10 + speed: 3 + startOpen: 0 + OnOpened: + m_PersistentCalls: + m_Calls: [] + OnClosed: + m_PersistentCalls: + m_Calls: [] +--- !u!65 &7987102888823411772 +BoxCollider: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} @@ -353,30 +372,6 @@ MeshCollider: m_IsTrigger: 0 m_ProvidesContacts: 0 m_Enabled: 1 - serializedVersion: 5 - m_Convex: 0 - m_CookingOptions: 30 - m_Mesh: {fileID: 0} ---- !u!114 &6921400718617286756 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6922175388650039756} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 0cc6c36a261296f4c82e315da147ba93, type: 3} - m_Name: - m_EditorClassIdentifier: Assembly-CSharp::SlidingDoor - axis: 1 - direction: 1 - slideDistance: 2 - speed: 3 - startOpen: 0 - OnOpened: - m_PersistentCalls: - m_Calls: [] - OnClosed: - m_PersistentCalls: - m_Calls: [] + serializedVersion: 3 + m_Size: {x: 0.1, y: 8, z: 8} + m_Center: {x: 0, y: 0, z: 0} diff --git a/Assets/Level/Prefabs/World/TileFloor.prefab b/Assets/Level/Prefabs/World/TileFloor.prefab index 84ea6f3..8df9204 100644 --- a/Assets/Level/Prefabs/World/TileFloor.prefab +++ b/Assets/Level/Prefabs/World/TileFloor.prefab @@ -13,7 +13,7 @@ GameObject: - component: {fileID: 4175848428221556727} - component: {fileID: 6830455346839416856} - component: {fileID: 9192243752437355431} - - component: {fileID: 838734381634944549} + - component: {fileID: 1753047251571399430} m_Layer: 0 m_Name: TileFloor m_TagString: Untagged @@ -248,7 +248,7 @@ MonoBehaviour: m_PreserveMeshAssetOnDestroy: 0 assetGuid: m_Mesh: {fileID: 0} - m_VersionIndex: 23 + m_VersionIndex: 26 m_IsSelectable: 1 m_SelectedFaces: m_SelectedEdges: [] @@ -334,8 +334,8 @@ MeshFilter: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 5840335221072158843} m_Mesh: {fileID: 0} ---- !u!64 &838734381634944549 -MeshCollider: +--- !u!65 &1753047251571399430 +BoxCollider: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} @@ -352,7 +352,6 @@ MeshCollider: m_IsTrigger: 0 m_ProvidesContacts: 0 m_Enabled: 1 - serializedVersion: 5 - m_Convex: 0 - m_CookingOptions: 30 - m_Mesh: {fileID: 0} + serializedVersion: 3 + m_Size: {x: 10, y: 0.1, z: 10} + m_Center: {x: 0, y: 0, z: 0} diff --git a/Assets/Level/Prefabs/World/TileGlass.prefab b/Assets/Level/Prefabs/World/TileGlass.prefab index d74e6fd..2ce00c5 100644 --- a/Assets/Level/Prefabs/World/TileGlass.prefab +++ b/Assets/Level/Prefabs/World/TileGlass.prefab @@ -13,7 +13,7 @@ GameObject: - component: {fileID: 8404390266503327226} - component: {fileID: 2553083886184869086} - component: {fileID: 7112311031510233378} - - component: {fileID: 395850085018812323} + - component: {fileID: 8869586897791223017} m_Layer: 0 m_Name: TileGlass m_TagString: Untagged @@ -31,7 +31,7 @@ Transform: serializedVersion: 2 m_LocalRotation: {x: 0, y: 0.7071068, z: 0, w: 0.7071068} m_LocalPosition: {x: -20.03938, y: 5, z: -15.141106} - m_LocalScale: {x: 1, y: 1, z: 1} + m_LocalScale: {x: 1, y: 1, z: 0.5} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 0} @@ -248,7 +248,7 @@ MonoBehaviour: m_PreserveMeshAssetOnDestroy: 0 assetGuid: m_Mesh: {fileID: 0} - m_VersionIndex: 23 + m_VersionIndex: 26 m_IsSelectable: 1 m_SelectedFaces: m_SelectedEdges: [] @@ -334,8 +334,8 @@ MeshFilter: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 7423121966632867460} m_Mesh: {fileID: 0} ---- !u!64 &395850085018812323 -MeshCollider: +--- !u!65 &8869586897791223017 +BoxCollider: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} @@ -352,7 +352,6 @@ MeshCollider: m_IsTrigger: 0 m_ProvidesContacts: 0 m_Enabled: 1 - serializedVersion: 5 - m_Convex: 0 - m_CookingOptions: 30 - m_Mesh: {fileID: 0} + serializedVersion: 3 + m_Size: {x: 0.100000024, y: 10, z: 10.000002} + m_Center: {x: 0, y: 0, z: 0} diff --git a/Assets/Level/Prefabs/World/TileWall.prefab b/Assets/Level/Prefabs/World/TileWall.prefab index f0b4173..51b2f4e 100644 --- a/Assets/Level/Prefabs/World/TileWall.prefab +++ b/Assets/Level/Prefabs/World/TileWall.prefab @@ -13,7 +13,7 @@ GameObject: - component: {fileID: 4579864586410663392} - component: {fileID: 8458375974803422925} - component: {fileID: 3605484921720718291} - - component: {fileID: 7401385164455639002} + - component: {fileID: 8463408000742725404} m_Layer: 0 m_Name: TileWall m_TagString: Untagged @@ -29,7 +29,7 @@ Transform: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 2843516741972607348} serializedVersion: 2 - m_LocalRotation: {x: 0.000000059604638, y: 0, z: 0, w: 1} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: -15, y: 5, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 @@ -248,7 +248,7 @@ MonoBehaviour: m_PreserveMeshAssetOnDestroy: 0 assetGuid: m_Mesh: {fileID: 0} - m_VersionIndex: 23 + m_VersionIndex: 26 m_IsSelectable: 1 m_SelectedFaces: m_SelectedEdges: [] @@ -334,8 +334,8 @@ MeshFilter: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 2843516741972607348} m_Mesh: {fileID: 0} ---- !u!64 &7401385164455639002 -MeshCollider: +--- !u!65 &8463408000742725404 +BoxCollider: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} @@ -352,7 +352,6 @@ MeshCollider: m_IsTrigger: 0 m_ProvidesContacts: 0 m_Enabled: 1 - serializedVersion: 5 - m_Convex: 0 - m_CookingOptions: 30 - m_Mesh: {fileID: 0} + serializedVersion: 3 + m_Size: {x: 0.1, y: 10, z: 10} + m_Center: {x: 0, y: 0.00000047683716, z: -0.00000059604645}