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

            clock.StartTimer(10000);

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

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