Skip to content

Commit

Permalink
fix: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Iam1337 committed Oct 29, 2020
1 parent b225d53 commit 8b28402
Showing 1 changed file with 29 additions and 41 deletions.
70 changes: 29 additions & 41 deletions Assets/extOSC/Scripts/UI/OSCPad.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ private static Vector2 ConvertVector(Vector2 input, PointAlignment alignment)

public RectTransform HandleRect
{
get { return _handleRect; }
set
get => _handleRect;
set
{
if (_handleRect == value)
return;
Expand All @@ -80,8 +80,8 @@ public RectTransform HandleRect

public RectTransform XAxisRect
{
get { return _xAxisRect; }
set
get => _xAxisRect;
set
{
if (_xAxisRect == value)
return;
Expand All @@ -94,8 +94,8 @@ public RectTransform XAxisRect

public RectTransform YAxisRect
{
get { return _yAxisRect; }
set
get => _yAxisRect;
set
{
if (_yAxisRect == value)
return;
Expand All @@ -115,13 +115,13 @@ public virtual Vector2 Value

return _value;
}
set { Set(value); }
}
set => Set(value);
}

public Vector2 MinValue
{
get { return _minValue; }
set
get => _minValue;
set
{
if (_minValue.Equals(value))
return;
Expand All @@ -135,8 +135,8 @@ public Vector2 MinValue

public Vector2 MaxValue
{
get { return _maxValue; }
set
get => _maxValue;
set
{
if (_maxValue.Equals(value))
return;
Expand All @@ -150,8 +150,8 @@ public Vector2 MaxValue

public bool WholeNumbers
{
get { return _wholeNumbers; }
set
get => _wholeNumbers;
set
{
if (_wholeNumbers.Equals(value))
return;
Expand All @@ -165,14 +165,14 @@ public bool WholeNumbers

public OSCEventVector2 OnValueChanged
{
get { return _onValueChanged; }
set { _onValueChanged = value; }
}
get => _onValueChanged;
set => _onValueChanged = value;
}

public PointAlignment HandleAlignment
{
get { return _handleAlignment; }
set
get => _handleAlignment;
set
{
if (_handleAlignment == value)
return;
Expand All @@ -185,20 +185,14 @@ public PointAlignment HandleAlignment

public bool ResetValue
{
get { return _resetValue; }
set
{
if (_resetValue == value)
return;

_resetValue = value;
}
}
get => _resetValue;
set => _resetValue = value;
}

public float ResetValueTime
{
get { return _resetValueTime; }
set
get => _resetValueTime;
set
{
if (Math.Abs(_resetValueTime - value) < float.Epsilon)
return;
Expand All @@ -212,20 +206,14 @@ public float ResetValueTime

public bool CallbackOnReset
{
get { return _callbackOnReset; }
set
{
if (_callbackOnReset == value)
return;

_callbackOnReset = value;
}
}
get => _callbackOnReset;
set => _callbackOnReset = value;
}

public Vector2 DefaultValue
{
get { return _defaultValue; }
set
get => _defaultValue;
set
{
if (_defaultValue.Equals(value))
return;
Expand Down

0 comments on commit 8b28402

Please sign in to comment.