mirror of
https://github.com/Ellpeck/Coroutine.git
synced 2024-06-15 18:34:30 +02:00
25 lines
477 B
C#
25 lines
477 B
C#
using System;
|
|
|
|
namespace Coroutine {
|
|
public struct WaitEvent : IWait {
|
|
|
|
private readonly Event evt;
|
|
|
|
public WaitEvent(Event evt) {
|
|
this.evt = evt;
|
|
}
|
|
|
|
public WaitType GetWaitType() {
|
|
return WaitType.Event;
|
|
}
|
|
|
|
public bool Tick(double deltaSeconds) {
|
|
throw new NotSupportedException();
|
|
}
|
|
|
|
public bool OnEvent(Event evt) {
|
|
return evt == this.evt;
|
|
}
|
|
|
|
}
|
|
} |