add properties on prototyping

This commit is contained in:
Nilton Constantino 2026-06-08 21:34:04 +01:00
parent 3a0f0562ae
commit 775dfd8ad2
No known key found for this signature in database
3 changed files with 7 additions and 7 deletions

View File

@ -27,19 +27,19 @@ namespace Intrepid.Gameplay.Prototyping
public int SizeX
{
get => sizeX;
set => sizeX = value;
set => sizeX = Mathf.Max(0, value);
}
public int SizeY
{
get => sizeY;
set => sizeY = value;
set => sizeY = Mathf.Max(0, value);
}
public int SizeZ
{
get => sizeZ;
set => sizeZ = value;
set => sizeZ = Mathf.Max(0, value);
}
public BoxCollider BoxCollider => boxCollider;

View File

@ -26,13 +26,13 @@ namespace Intrepid.Gameplay.Prototyping
public int SizeX
{
get => sizeX;
set => sizeX = value;
set => sizeX = Mathf.Max(0, value);
}
public int SizeZ
{
get => sizeZ;
set => sizeZ = value;
set => sizeZ = Mathf.Max(0, value);
}
public BoxCollider BoxCollider => boxCollider;

View File

@ -23,13 +23,13 @@ namespace Intrepid.Gameplay.Prototyping
public int SizeX
{
get => sizeX;
set => sizeX = value;
set => sizeX = Mathf.Max(0, value);
}
public int SizeZ
{
get => sizeZ;
set => sizeZ = value;
set => sizeZ = Mathf.Max(0, value);
}
public BoxCollider BoxCollider => boxCollider;