From 2a2f7f4a30fdc581c32d198fc30f6cec891834ae Mon Sep 17 00:00:00 2001 From: Nilton Constantino Date: Mon, 8 Jun 2026 22:16:18 +0100 Subject: [PATCH] add properties on prototyping --- .../Gameplay/Prototyping/ContactCubeModelPrototype.cs | 6 +++--- .../Gameplay/Prototyping/GroundRampModelPrototype.cs | 4 ++-- .../Gameplay/Prototyping/GroundSlabModelPrototype.cs | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Assets/Scripts/Intrepid/Gameplay/Prototyping/ContactCubeModelPrototype.cs b/Assets/Scripts/Intrepid/Gameplay/Prototyping/ContactCubeModelPrototype.cs index 5b32b34..a68acb0 100644 --- a/Assets/Scripts/Intrepid/Gameplay/Prototyping/ContactCubeModelPrototype.cs +++ b/Assets/Scripts/Intrepid/Gameplay/Prototyping/ContactCubeModelPrototype.cs @@ -27,19 +27,19 @@ namespace Intrepid.Gameplay.Prototyping public int SizeX { get => sizeX; - set => sizeX = Mathf.Max(0, value); + set => sizeX = Mathf.Max(1, value); } public int SizeY { get => sizeY; - set => sizeY = Mathf.Max(0, value); + set => sizeY = Mathf.Max(1, value); } public int SizeZ { get => sizeZ; - set => sizeZ = Mathf.Max(0, value); + set => sizeZ = Mathf.Max(1, value); } public BoxCollider BoxCollider => boxCollider; diff --git a/Assets/Scripts/Intrepid/Gameplay/Prototyping/GroundRampModelPrototype.cs b/Assets/Scripts/Intrepid/Gameplay/Prototyping/GroundRampModelPrototype.cs index bbdc188..02b94f5 100644 --- a/Assets/Scripts/Intrepid/Gameplay/Prototyping/GroundRampModelPrototype.cs +++ b/Assets/Scripts/Intrepid/Gameplay/Prototyping/GroundRampModelPrototype.cs @@ -26,13 +26,13 @@ namespace Intrepid.Gameplay.Prototyping public int SizeX { get => sizeX; - set => sizeX = Mathf.Max(0, value); + set => sizeX = Mathf.Max(1, value); } public int SizeZ { get => sizeZ; - set => sizeZ = Mathf.Max(0, value); + set => sizeZ = Mathf.Max(1, value); } public BoxCollider BoxCollider => boxCollider; diff --git a/Assets/Scripts/Intrepid/Gameplay/Prototyping/GroundSlabModelPrototype.cs b/Assets/Scripts/Intrepid/Gameplay/Prototyping/GroundSlabModelPrototype.cs index 53b0c29..bccac9e 100644 --- a/Assets/Scripts/Intrepid/Gameplay/Prototyping/GroundSlabModelPrototype.cs +++ b/Assets/Scripts/Intrepid/Gameplay/Prototyping/GroundSlabModelPrototype.cs @@ -23,13 +23,13 @@ namespace Intrepid.Gameplay.Prototyping public int SizeX { get => sizeX; - set => sizeX = Mathf.Max(0, value); + set => sizeX = Mathf.Max(1, value); } public int SizeZ { get => sizeZ; - set => sizeZ = Mathf.Max(0, value); + set => sizeZ = Mathf.Max(1, value); } public BoxCollider BoxCollider => boxCollider;