void AStarDebugCallback(IDictionary<IntVector3, AStarNode> nodes) { if (!this.Step) return; Dispatcher.Invoke(new Action(delegate { m_nodes = nodes; InvalidateTileData(); UpdateLayout(); })); m_contEvent.WaitOne(); }