public static void PatherArrivedHelper(Pawn_PathFollower instance, Pawn pawn) { instance.StopDead(); if (!(pawn.jobs.curJob is null)) { pawn.jobs.curDriver.Notify_PatherArrived(); } }
public static void PatherFailedHelper(ref Pawn_PathFollower instance, Pawn pawn) { instance.StopDead(); pawn?.jobs?.curDriver?.Notify_PatherFailed(); }