Ejemplo n.º 1
0
 private void Start()
 {
     currentProjects  = GlobalDataStorage.GetInstance().GetSelectedProjects();
     numberOfProjects = currentProjects.Length;
     if (numberOfProjects > 0)
     {
         projectVariable = 0;
         startPosition   = worldBuilder.CreateStart(startPosition, out levelInteractives);
         NextProjectCanvas(startPosition);
         for (int i = 1; i < numberOfProjects; i++)
         {
             NextProjectCanvas(positionVar);
         }
         worldBuilder.CreateEnd(positionVar, ref levelInteractives);
         interactivesBuilder.CreateLevelInteractives(ref levelInteractives, ref projectInteractives);
         miniMapHandler.AddNewMinimapPoint(levelInteractives.exitPortalStart, "Back to Main Scene", new Color32(141, 224, 255, 255));
         miniMapHandler.AddNewMinimapPoint(levelInteractives.exitPortalEnd, "Back to Main Scene", new Color32(141, 224, 255, 255));
         miniMapHandler.AddNewMinimapPoint(levelInteractives.contactMePortalStart, "Ways of Contacting me", new Color32(255, 220, 155, 255));
         miniMapHandler.AddNewMinimapPoint(levelInteractives.contactMePortalEnd, "Ways of Contacting me", new Color32(255, 220, 155, 255));
         miniMapHandler.SetMinimapLimiters(levelInteractives);
         miniMapHandler.InitializeMinimap();
     }
     else
     {
         //<TO BE ADDED> No Projects were selected. Return to main scene or else.
         Debug.Log("No projects were selected");
     }
 }