public void FillContent(ref ProjectInteractivesPositions projectInteractivesPositions, ref ElementsExist elements) { if (project == null) { Debug.Log("no project Set"); return; } headerFiller.SetContent(project.projectName, project.tags, project.id); headerFiller.CheckContent(); projectInteractivesPositions.descriptionFiller = descriptionFiller; if (elements.isDescription) { descriptionFiller.SetContent(project.descriptions); descriptionFiller.CheckContent(ref projectInteractivesPositions); } projectInteractivesPositions.imageFiller = imageFiller; if (elements.isImages) { imageFiller.SetContent(project.images); imageFiller.CheckContent(ref projectInteractivesPositions); } projectInteractivesPositions.videoFiller = videoFiller; if (elements.isVideos) { videoFiller.SetContent(project.videos); videoFiller.CheckContent(ref projectInteractivesPositions); } projectInteractivesPositions.linkFiller = linkFiller; if (elements.isLinks) { linkFiller.SetContent(project.links); linkFiller.CheckContent(ref projectInteractivesPositions); } }
public void CheckContent(ref ProjectInteractivesPositions projectInteractives) { if (descriptions[0].text.Length > 589) { projectInteractives.needDescUD = true; } FillContent(); }
public Vector3Int CreateWalls(ElementsExist elements, Vector3Int startPosition, GameObject projectCanvas, out ProjectInteractivesPositions interPositions) { Vector3Int endPos; projectInteractives = new ProjectInteractivesPositions(); endPos = CreateWallsStart(startPosition); MoveCanvas(projectCanvas, endPos); endPos = CreateWallsMiddle(elements, endPos); endPos = CreateWallsEnd(endPos); projectInteractives.elements = elements; interPositions = projectInteractives; return(endPos); }
public void CheckContent(ref ProjectInteractivesPositions interactivesPositions) { if (links == null) { Debug.Log("No Links set"); return; } interactivesPositions.linkAmount = links.Length; if (links.Length > 0) { interactivesPositions.needLinkSelector = true; } FillContent(); }
public void CheckContent(ref ProjectInteractivesPositions interactives) { numOfPages = 0; if (videos == null) { Debug.Log("No videos were set"); return; } numOfPages = videos.Length; interactives.vidPages = numOfPages; if (numOfPages > 1) { interactives.needVidUD = true; } FillContent(1); }
public void CheckContent(ref ProjectInteractivesPositions interactives) { numOfPages = 0; if (images == null) { Debug.Log("No images were set"); return; } interactives.imgAmount = images.Length; numOfPages = (int)Math.Floor((decimal)images.Length / 4); if (images.Length % 4 > 0) { numOfPages++; } interactives.imgPages = numOfPages; if (numOfPages > 1) { interactives.needImgUD = true; } FillContent(1); }
private void TransferInteractivesToMinimap(ProjectInteractivesPositions interactives) { miniMapHandler.AddNewMinimapPoint(interactives.teleportPos, "\" " + interactives.projectName + " \" Project"); }