Coroutine/Coroutine/Wait.cs

24 lines
412 B
C#
Raw Normal View History

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