コード例 #1
0
 private void OnMouseUp()
 {
     if (dialogWindow.activeSelf)
     {
         if (dialogWindowManager.IssueText.Length >= minIssueLength) //Create new issue if length is not too short
         {
             if (!issuesMap.ContainsKey(selectedDate))               //Creating new date in the map if its doesnt exists
             {
                 issuesMap.Add(selectedDate, new List <Issue>());
             }
             issuesMap[selectedDate].Add(CreateIssue()); //add new issue to the map
             dialogWindowManager.Deactivate();
             closeButtonDriver.Deactivate();
         }
         else
         {
             dialogWindowManager.ClearInputField(minIssueLength);
         }
     }
     else
     {
         closeButtonDriver.Activate();
         dialogWindowManager.Activate();
     }
 }
コード例 #2
0
 private void OnMouseUp()
 {
     if (dialogWindow.activeSelf)
     {
         if (dialogWindowManager.IssueText.Length >= minIssueLength) //Create new issue if length is not too short
         {
             string selectedTime = dialogWindowManager.SelectedHours + ":" + dialogWindowManager.SelectedMinutes;
             Instantiate(spawnIssue(dialogWindowManager.IssueText, selectedTime), issuesContainer);
             dialogWindowManager.Deactivate();
             closeButtonDriver.Deactivate();
         }
         else
         {
             dialogWindowManager.ClearInputField(minIssueLength);
         }
     }
     else
     {
         closeButtonDriver.Activate();
         dialogWindowManager.Activate();
     }
 }