Fix details with removeComponents being active too early

This commit is contained in:
Nick 2023-03-26 14:55:24 -04:00
parent a31e1d0499
commit 28df733eab

View File

@ -174,6 +174,7 @@ namespace NewHorizons.Builder.Props
// Just swap all the children to a new game object
var newDetailGO = new GameObject(prop.name);
newDetailGO.SetActive(false);
newDetailGO.transform.position = prop.transform.position;
newDetailGO.transform.parent = prop.transform.parent;