public static void releaseBed(Building_Bed bed, Pawn pawn) { if (pawn == null || bed == null) { return; } //cause that doenst work lets do this bed.TryUnassignPawn(pawn); }