public virtual void OnAwake()
{
this.m_laneLocation = new uint[262144];
this.m_laneTarget = new PathUnit.Position[262144];
this.m_buffer = new BufferItem[65536];
this.m_bufferMin = new int[1024];
this.m_bufferMax = new int[1024];
this.m_queueLock = new object();
this.m_bufferLock = Singleton<PathManager>.instance.m_bufferLock;
this.m_pathUnits = Singleton<PathManager>.instance.m_pathUnits;
this.m_pathFindThread = new Thread(new ThreadStart(this.PathFindThread));
this.m_pathFindThread.Name = "Pathfind";
this.m_pathFindThread.Priority = SimulationManager.SIMULATION_PRIORITY;
this.m_pathFindThread.Start();
if (!this.m_pathFindThread.IsAlive)
{
CODebugBase<LogChannel>.Error(LogChannel.Core, "Path find thread failed to start!");
}
}