public void ConfirmDesignDocument() { projectName = workProjectQuestionDisplay.GetNameProject(); bool projectNameIsEmpty = projectName.Equals(string.Empty); bool goalIsEmpty = (goalSlot == null); bool mechanicIsEmpty = (mechanicSlots[0] == null || mechanicSlots[1] == null); bool themeIsEmpty = themeSlots == null; if (projectNameIsEmpty) { notificationController.ProjectNameIsEmtyp(); } else if (goalIsEmpty) { notificationController.GoalIdeaIsEmpty(); } else if (mechanicIsEmpty) { notificationController.MechanicIdeaIsEmpty(); } else if (themeIsEmpty) { notificationController.ThemeIdeaIsEmpty(); } else { int platformDropdownIndex = workProjectQuestionDisplay.GetIndexPlatformDropdownSelect(); int playerDropdownIndex = workProjectQuestionDisplay.GetIndexPlayerDropdownSelect(); string[] mechanicsSlotsId = { mechanicSlots[0].IDEASLOT.Id, mechanicSlots[1].IDEASLOT.Id }; projectController.DesignGameDucument(projectName, goalSlot.IDEASLOT.Id, mechanicsSlotsId, themeSlots.IDEASLOT.Id, platformNameIdeas[platformDropdownIndex], playerNameIdeas[playerDropdownIndex]); if (projectController.HasDesigned) { if (SceneManager.GetSceneByName(GameManager.GameScene.COM_WorkProject.ToString()).isLoaded) { SwitchScene.Instance.DisplayWorkProjectSummary(true); } { SwitchScene.Instance.DisplayWorkProjectDesign(false); } } } }