public static string FormatRoom(PlacedPrefab room) { return(string.Format(ROOM_TEMPLATE, room.GetName(), room.GetPosition().x, AntiCorruption.FixHandedness(room.GetPosition().z), Mathf.RoundToInt(room.GetRotation().eulerAngles.y))); }
public void Duplicate() { if (_parent == null) { return; } var newPlaced = new PlacedPrefab(); newPlaced.RootPosition = RootPosition; newPlaced.Rotation = Rotation; newPlaced.Prefab = Prefab; newPlaced.Color = Color; newPlaced.ChildPositions = ChildPositions; _parent._prefabs.Add(newPlaced); }