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"); } }
// Start is called before the first frame update void Start() { globalData = GlobalDataStorage.GetInstance(); allTags = globalData.GetTags(); tagsPool.AddRange(allTags); pickerMenu.alpha = 0f; pickerMenu.blocksRaycasts = false; SearchSelectedTags(); SetSelectedProjects(currentSelectedItems.ToArray()); }
private void Awake() { if (instance != null) { Destroy(this.gameObject); return; } instance = this; GameObject.DontDestroyOnLoad(this.gameObject); if (allProjectItems.Length > 0) { foreach (ProjectItem project in allProjectItems) { project.id = ++idVariable; } selectedProjectItems = allProjectItems; } }
private void Start() { sceneController = SceneController.GetInstance(); globalData = GlobalDataStorage.GetInstance(); }