static void Main(string[] args) { Clock.Clock clock = new Clock.Clock(); Listener listener = new Listener(clock); clock.StartTimer(10000); Console.ReadKey(); }
public void Execute(Clock clock, byte cycle) { }
public override bool Execute(Clock clock, out ClockEntry next) { _op.Execute(clock, _cycle); _cycle = (byte)((_cycle + 1) % _length); if (_cycle == 0) { next = _next; return _comboNext; } else { next = this; return false; } }
public virtual bool Execute(Clock clock, out ClockEntry next) { _op.Execute(clock, 0); next = _next; return _comboNext; }
public void Subscribe(Clock.Clock clock) => clock.Notification += ShowNotification;
public void Unsubscribe(Clock.Clock clock) => clock.Notification -= ShowNotification;
private void Awake() { _clock = FindObjectOfType <Clock.Clock>(); }