unregister event on disable
This commit is contained in:
parent
c66bf6f1f1
commit
35d652bb95
|
@ -18,7 +18,7 @@ namespace Ktyl.Util
|
||||||
|
|
||||||
private void OnDisable()
|
private void OnDisable()
|
||||||
{
|
{
|
||||||
_event.Register(this);
|
_event.Unregister(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void OnEventRaised()
|
public void OnEventRaised()
|
||||||
|
|
Loading…
Reference in New Issue