use Equals for event comparison to allow easily overriding the equals method

This commit is contained in:
Ell 2021-03-16 18:28:38 +01:00
parent ca434b2324
commit 5c6621ace3

View file

@ -41,7 +41,7 @@ namespace Coroutine {
}
internal bool OnEvent(Event evt) {
return evt == this.evt;
return Equals(evt, this.evt);
}
internal bool IsWaitingForEvent() {