From 3a0f0562ae6134ea0bf88291c949d776dbc1fae6 Mon Sep 17 00:00:00 2001 From: Nilton Constantino Date: Mon, 8 Jun 2026 21:32:47 +0100 Subject: [PATCH] add properties on prototyping --- .../Prototyping/ContactCubeModelPrototype.cs | 18 ++++++++++++++++++ .../Prototyping/GroundRampModelPrototype.cs | 12 ++++++++++++ .../Prototyping/GroundSlabModelPrototype.cs | 12 ++++++++++++ 3 files changed, 42 insertions(+) diff --git a/Assets/Scripts/Intrepid/Gameplay/Prototyping/ContactCubeModelPrototype.cs b/Assets/Scripts/Intrepid/Gameplay/Prototyping/ContactCubeModelPrototype.cs index 812caee..6f103b2 100644 --- a/Assets/Scripts/Intrepid/Gameplay/Prototyping/ContactCubeModelPrototype.cs +++ b/Assets/Scripts/Intrepid/Gameplay/Prototyping/ContactCubeModelPrototype.cs @@ -24,6 +24,24 @@ namespace Intrepid.Gameplay.Prototyping private int lastSizeZ = -1; private float lastOffset = -1f; + public int SizeX + { + get => sizeX; + set => sizeX = value; + } + + public int SizeY + { + get => sizeY; + set => sizeY = value; + } + + public int SizeZ + { + get => sizeZ; + set => sizeZ = value; + } + public BoxCollider BoxCollider => boxCollider; [GroupDebug, Button(ButtonSizes.Medium)] diff --git a/Assets/Scripts/Intrepid/Gameplay/Prototyping/GroundRampModelPrototype.cs b/Assets/Scripts/Intrepid/Gameplay/Prototyping/GroundRampModelPrototype.cs index dfb7a12..03caa28 100644 --- a/Assets/Scripts/Intrepid/Gameplay/Prototyping/GroundRampModelPrototype.cs +++ b/Assets/Scripts/Intrepid/Gameplay/Prototyping/GroundRampModelPrototype.cs @@ -23,6 +23,18 @@ namespace Intrepid.Gameplay.Prototyping private int lastSizeX = -1; private int lastSizeZ = -1; + public int SizeX + { + get => sizeX; + set => sizeX = value; + } + + public int SizeZ + { + get => sizeZ; + set => sizeZ = value; + } + public BoxCollider BoxCollider => boxCollider; [GroupDebug, Button(ButtonSizes.Medium)] diff --git a/Assets/Scripts/Intrepid/Gameplay/Prototyping/GroundSlabModelPrototype.cs b/Assets/Scripts/Intrepid/Gameplay/Prototyping/GroundSlabModelPrototype.cs index 87d79b4..f6a634a 100644 --- a/Assets/Scripts/Intrepid/Gameplay/Prototyping/GroundSlabModelPrototype.cs +++ b/Assets/Scripts/Intrepid/Gameplay/Prototyping/GroundSlabModelPrototype.cs @@ -20,6 +20,18 @@ namespace Intrepid.Gameplay.Prototyping private int lastSizeX = -1; private int lastSizeZ = -1; + public int SizeX + { + get => sizeX; + set => sizeX = value; + } + + public int SizeZ + { + get => sizeZ; + set => sizeZ = value; + } + public BoxCollider BoxCollider => boxCollider; [GroupDebug, Button(ButtonSizes.Medium)]