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