Esempio n. 1
0
        static void Main(string[] args)
        {
            Clock.Clock clock    = new Clock.Clock();
            Listener    listener = new Listener(clock);

            clock.StartTimer(10000);

            Console.ReadKey();
        }
Esempio n. 2
0
 public void Execute(Clock clock, byte cycle)
 {
 }
Esempio n. 3
0
        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;
            }
        }
Esempio n. 4
0
        public virtual bool Execute(Clock clock, out ClockEntry next)
        {
            _op.Execute(clock, 0);
            next = _next;

            return _comboNext;
        }
Esempio n. 5
0
 public void Subscribe(Clock.Clock clock) =>
 clock.Notification += ShowNotification;
Esempio n. 6
0
 public void Unsubscribe(Clock.Clock clock) =>
 clock.Notification -= ShowNotification;
Esempio n. 7
0
 private void Awake()
 {
     _clock = FindObjectOfType <Clock.Clock>();
 }