Skip to content

Commit c2712d0

Browse files
committed
Amount input was only accepting ints
1 parent 3cb3e15 commit c2712d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Assets/_Scripts/UI/PolyUI.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,8 @@ void AmountInputChanged()
198198
{
199199
var slider = EventSystem.current.currentSelectedGameObject.GetComponentInParent<OpPrefabManager>().AmountSlider;
200200
var input = EventSystem.current.currentSelectedGameObject.GetComponentInParent<OpPrefabManager>().AmountInput;
201-
int value;
202-
if (Int32.TryParse(input.text, out value))
201+
float value;
202+
if (float.TryParse(input.text, out value))
203203
{
204204
slider.value = value;
205205
}

0 commit comments

Comments
 (0)