void ShowReport() { Text total = Report.Find("Total").GetComponent <Text> (); Text correct = Report.Find("Correct").GetComponent <Text> (); Text accuracy = Report.Find("Accuracy").GetComponent <Text> (); Text useTime = Report.Find("UseTime").GetComponent <Text> (); Transform ReTryButton = Report.Find("ReTryButton"); bool isAllRight = (examine.correctAnswerCount == examine.totalQuestionCount); total.text = examine.totalQuestionCount.ToString(); correct.text = examine.correctAnswerCount.ToString(); accuracy.text = (examine.totalQuestionCount - examine.correctAnswerCount).ToString(); useTime.text = string.Format("{0:F1}秒", examine.elapseSeconds); ReTryButton.gameObject.SetActive(!isAllRight); if (isAllRight) { RankManager.AddExamine(examine); RankManager.Save(); } else { WrongManager.AddWrongQuestion(examine); WrongManager.Save(); } Report.gameObject.SetActive(true); }