예제 #1
0
 public Worker(Simulator sim)
 {
     this.simulator      = sim;
     thread              = new Thread(new ThreadStart(Run));
     thread.IsBackground = true;
     thread.Name         = "RVO Simulator Thread";
     thread.Start();
 }
예제 #2
0
            public Worker(Simulator sim)
            {
                this.simulator = sim;
                var thread = new Thread(new ThreadStart(Run))
                {
                    IsBackground = true,
                    Name         = "RVO Simulator Thread"
                };

                thread.Start();
            }
예제 #3
0
            public Worker(Simulator sim)
            {
                this.simulator = sim;
                var thread = new Thread(new ThreadStart(Run));

                thread.IsBackground = true;
#if !UNITY_SWITCH || UNITY_EDITOR
                // Note: Setting the thread name seems to crash when deploying for Switch: https://forum.arongranberg.com/t/path-processor-crashing-nintendo-switch-build/6584
                thread.Name = "RVO Simulator Thread";
#endif
                thread.Start();
            }
예제 #4
0
			public Worker (Simulator sim) {
				this.simulator = sim;
				thread = new Thread (new ThreadStart (Run));
				thread.IsBackground = true;
				thread.Name = "RVO Simulator Thread";
				thread.Start ();
			}