unregister event on disable

This commit is contained in:
Cat Flynn 2021-02-23 12:54:51 +00:00
parent c66bf6f1f1
commit 35d652bb95
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ namespace Ktyl.Util
private void OnDisable()
{
_event.Register(this);
_event.Unregister(this);
}
public void OnEventRaised()