public BuildData AddObjectToEditList(Vector2Int leftBottomGrid) { BuildData buildData = new BuildData(); buildData.BuildUid = 0; buildData.Count = 0; buildData.BuildType = (int)SelectBuildType; buildData.BuildId = SelectBuildId; buildData.Rotate = 0; buildData.Rect.x = leftBottomGrid.x; buildData.Rect.y = leftBottomGrid.y; buildData.Rect.width = SelectBuildWidth; buildData.Rect.height = SelectBuildHeight; EditingObjectList.Add(buildData); return(buildData); }
public void AddObjectToEditList(BuildData buildData) { EditingObjectList.Add(buildData); }