Skip to content

Commit

Permalink
Amount input was only accepting ints
Browse files Browse the repository at this point in the history
  • Loading branch information
andybak committed Nov 12, 2018
1 parent 3cb3e15 commit c2712d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Assets/_Scripts/UI/PolyUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@ void AmountInputChanged()
{
var slider = EventSystem.current.currentSelectedGameObject.GetComponentInParent<OpPrefabManager>().AmountSlider;
var input = EventSystem.current.currentSelectedGameObject.GetComponentInParent<OpPrefabManager>().AmountInput;
int value;
if (Int32.TryParse(input.text, out value))
float value;
if (float.TryParse(input.text, out value))
{
slider.value = value;
}
Expand Down

0 comments on commit c2712d0

Please sign in to comment.