mirror of
https://github.com/Ellpeck/Coroutine.git
synced 2024-06-08 07:43:37 +02:00
use Equals for event comparison to allow easily overriding the equals method
This commit is contained in:
parent
ca434b2324
commit
5c6621ace3
|
@ -41,7 +41,7 @@ namespace Coroutine {
|
|||
}
|
||||
|
||||
internal bool OnEvent(Event evt) {
|
||||
return evt == this.evt;
|
||||
return Equals(evt, this.evt);
|
||||
}
|
||||
|
||||
internal bool IsWaitingForEvent() {
|
||||
|
|
Loading…
Reference in a new issue