Coroutine/Coroutine/WaitEvent.cs

19 lines
372 B
C#
Raw Normal View History

2019-06-22 17:24:50 +02:00
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;
}
}
}