private static void FlashTryFindRandomPawnExitCell(Pawn p) { if (CellFinder.TryFindRandomPawnExitCell(p, out IntVec3 result)) { p.Map.debugDrawer.FlashCell(result, 0.5f); p.Map.debugDrawer.FlashLine(p.Position, result); } else { p.Map.debugDrawer.FlashCell(p.Position, 0.2f, "no exit cell"); } }