Пример #1
0
 public void OldButtonClick()
 {
     if (0 <= PictureNumber && PictureNumber < OldPictureCount)
     {
         CorrectAnswerList.Add("Old");
     }
     if (OldPictureCount <= PictureNumber && PictureNumber < PictureCount)
     {
         CorrectAnswerList.Add("New");
     }
     QuestionPictureArray[PictureNumber].SetActive(false);
     QuestionNumber++;
     if (QuestionNumber == PictureCount + 1)
     {
         AnswerList.Add("Old");
         NewButton.gameObject.SetActive(false);
         OldButton.gameObject.SetActive(false);
         EndButton.gameObject.SetActive(false);
         FinishScreen.SetActive(true);
         //ResultExporter内の関数を起動
         ResultExporter resultExporter = ResultExporterObj.GetComponent <ResultExporter>();
         resultExporter.ResultExport();
     }
     else
     {
         PictureNumber = PictureNumberArray[QuestionNumber - 1];
         QuestionPictureArray[PictureNumber].SetActive(true);
         AnswerList.Add("Old");
     }
 }
Пример #2
0
    public void EndButtonClick()
    {
        QuestionPictureArray[PictureNumber].SetActive(false);
        NewButton.gameObject.SetActive(false);
        OldButton.gameObject.SetActive(false);
        EndButton.gameObject.SetActive(false);
        FinishScreen.SetActive(true);
        //ResultExporter内の関数を起動
        ResultExporter resultExporter = ResultExporterObj.GetComponent <ResultExporter>();

        resultExporter.ResultExport();
    }