diff --git a/Assets/Engine/Runtime/Modules/Module.cs b/Assets/Engine/Runtime/Modules/Module.cs index 1b939c1..23b96b3 100644 --- a/Assets/Engine/Runtime/Modules/Module.cs +++ b/Assets/Engine/Runtime/Modules/Module.cs @@ -15,6 +15,7 @@ namespace EscapeRoomEngine.Engine.Runtime.Modules public readonly List relatedModules = new(); public ModuleState State { get; private set; } + internal Vector2Int Size => srPlacement.size; internal Orientation Orientation => srPlacement.orientation; /// /// Get the space relative (SR) position of this module. @@ -38,6 +39,7 @@ namespace EscapeRoomEngine.Engine.Runtime.Modules { this.space = space; this.description = description; + srPlacement.size = description.modulePrefab.size; } internal bool IsType(ModuleType type) @@ -61,7 +63,7 @@ namespace EscapeRoomEngine.Engine.Runtime.Modules Place(new Placement { position = space.ToSpaceRelative(rrPosition), - size = description.modulePrefab.size, + size = srPlacement.size, orientation = orientation });