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

24 lines
412 B
C#

using System;
namespace Coroutine {
public abstract class Wait {
public abstract WaitType GetWaitType();
public virtual bool Tick(double deltaSeconds) {
throw new NotSupportedException();
}
public virtual bool OnEvent(Event evt) {
throw new NotSupportedException();
}
}
public enum WaitType {
Tick,
Event
}
}