Skip to content

Commit 2586660

Browse files
committed
Float comparison
1 parent a7c3d75 commit 2586660

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Runtime/Variables/FloatVariable.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public float Value
1212
get => value;
1313
set
1414
{
15-
if (this.value != value)
15+
if (!Mathf.Approximately(this.value,value) )
1616
{
1717
this.value = value;
1818
if (onValueChanged != null)

0 commit comments

Comments
 (0)