Пример #1
0
        public Loader(World w)
        {
            Conveyor = new Conveyor(0, 570, w);

            PultOn += () =>
            {
                Conveyor.TMove = new Task(() => Conveyor.Moving());
                Conveyor.TMove.Start();
            };

            PultOn();
        }
Пример #2
0
 public void AddC(Conveyor c)
 {
     Monitor.Enter(World.locker);
     CList.Add(c);
     Monitor.Exit(World.locker);
 }
Пример #3
0
 public void Fix(Conveyor c)
 {
     Thread.Sleep(200);
     c.temp = true;
 }