Ejemplo n.º 1
0
        public void TestWithoutAsync()
        {
            var config = new TimingComponentConfiguration
            {
                ServiceName           = "Rick's Service",
                IntervalInMillseconds = 2000,
                Perform = () =>
                {
                    Console.WriteLine("Fired");
                    var t = new Test();
                    t.Run();
                }
            };

            var timing = new TimingComponent(config, new ConsoleLogger());

            timing.Start();
            Thread.Sleep(5000);
            timing.Stop();
        }
Ejemplo n.º 2
0
 void Start()
 {
     xPosition  = transform.position.x;
     yPosition  = transform.position.y;
     timingComp = GetComponent <TimingComponent>();
 }