mirror of
https://github.com/Ellpeck/Coroutine.git
synced 2024-05-19 15:41:23 +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;
|
||
|
}
|
||
|
|
||
|
}
|
||
|
}
|