mirror of
https://github.com/Ellpeck/Coroutine.git
synced 2024-05-07 10:23:53 +02:00
19 lines
372 B
C#
19 lines
372 B
C#
namespace Coroutine {
|
|
public class WaitEvent : Wait {
|
|
|
|
private readonly Event evt;
|
|
|
|
public WaitEvent(Event evt) {
|
|
this.evt = evt;
|
|
}
|
|
|
|
public override WaitType GetWaitType() {
|
|
return WaitType.Event;
|
|
}
|
|
|
|
public override bool OnEvent(Event evt) {
|
|
return evt == this.evt;
|
|
}
|
|
|
|
}
|
|
} |