// done after StuffPlacer has done its own thing in PlaceThingBeingPlaced private static void PlaceBoard() { if (!StuffPlacer.OkayToPlace) { return; } StuffPlacer.PlaceThingBeingPlaced(); BoardBeingPlaced.transform.parent = ReferenceObject.transform.parent; // StuffPlacer set referenceobject to the correct parent, but that should actually be BoardBeingPlaced's parent BoardBeingPlaced = null; ReferenceObject.transform.parent = null; // this is important because a circuitboard having any children means it can't be deleted, and this can f**k that up GameplayUIManager.UIState = UIState.None; }