Improvement
This commit is contained in:
parent
eb0d7fc7a7
commit
63020a0b9e
|
@ -13,12 +13,11 @@ namespace Syntriax.Modules.Trigger
|
||||||
get => _isTrigerred;
|
get => _isTrigerred;
|
||||||
protected set
|
protected set
|
||||||
{
|
{
|
||||||
bool oldValue = _isTrigerred;
|
if (value == _isTrigerred)
|
||||||
|
return;
|
||||||
|
|
||||||
_isTrigerred = value;
|
_isTrigerred = value;
|
||||||
|
OnTriggered?.Invoke(value);
|
||||||
if (oldValue != value)
|
|
||||||
OnTriggered?.Invoke(value);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue