Ejemplo n.º 1
0
 public void NextProjectCanvas(Vector3Int nextPosition)
 {
     //CheckProjectVAriable
     instantiatedProject        = Instantiate(projectPrefab, wallTiles.GetCellCenterWorld(nextPosition), Quaternion.identity);
     instantiatedCanvas         = instantiatedProject.GetComponent <CanvasCreator>();
     instantiatedCanvas.project = currentProjects[projectVariable];
     elementsExist      = instantiatedCanvas.EditCanvas();
     positionVar        = worldBuilder.CreateWalls(elementsExist, nextPosition, instantiatedProject, out projectInteractives);
     instantiatedFiller = instantiatedProject.GetComponent <ContentFiller>();
     instantiatedFiller.SetProject(currentProjects[projectVariable]);
     instantiatedFiller.FillContent(ref projectInteractives, ref elementsExist);
     projectInteractives.id              = currentProjects[projectVariable].id;
     projectInteractives.projectName     = currentProjects[projectVariable].projectName;
     projectInteractives.tags            = currentProjects[projectVariable].tags;
     projectInteractives.screenControls  = onScreenControls;
     projectInteractives.teleportHandler = onScreenTeleport;
     projectInteractives.imageViewer     = imageViewer;
     projectInteractives.linkVerifier    = linkVerifier;
     projectVariable += 1;
     interactivesBuilder.CreateInteractives(projectInteractives);
     TransferInteractivesToMinimap(projectInteractives);
     //interactivesBuilder.CreateInteractives(projectInteractives,instantiatedFiller);
     //^Create Interactives
     //NextProject;
 }