mirror of
https://github.com/Ellpeck/Coroutine.git
synced 2024-12-22 09:09:23 +01:00
use Equals for event comparison to allow easily overriding the equals method
This commit is contained in:
parent
ca434b2324
commit
5c6621ace3
1 changed files with 1 additions and 1 deletions
|
@ -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