mirror of
https://github.com/Ellpeck/Coroutine.git
synced 2024-04-29 07:39:06 +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) {
|
internal bool OnEvent(Event evt) {
|
||||||
return evt == this.evt;
|
return Equals(evt, this.evt);
|
||||||
}
|
}
|
||||||
|
|
||||||
internal bool IsWaitingForEvent() {
|
internal bool IsWaitingForEvent() {
|
||||||
|
|
Loading…
Reference in a new issue