Coroutine/Coroutine/WaitEvent.cs
2019-06-22 17:24:50 +02:00

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;
}
}
}