diff --git a/Coroutine/Wait.cs b/Coroutine/Wait.cs index a283e35..516fadb 100644 --- a/Coroutine/Wait.cs +++ b/Coroutine/Wait.cs @@ -41,7 +41,7 @@ namespace Coroutine { } internal bool OnEvent(Event evt) { - return evt == this.evt; + return Equals(evt, this.evt); } internal bool IsWaitingForEvent() {