public void ClearStage() { if (!stageEnd) { stageEnd = true; this.player.isPlay = false; this.player.SavePlayerStatus(); //uiがシュっと出てきます。 RectTransform panelTransform = uiCanvas.transform.Find("GameClearPanel") as RectTransform; Animator panelAnimator = panelTransform.GetComponent <Animator>(); panelAnimator.SetTrigger("StageClear"); TimerUI timerUI = uiCanvas.transform.Find("Timer").GetComponent <TimerUI>(); timerUI.PlayerGoal(); panelTransform.Find("Score").GetComponent <Text>().text = "すこあ : " + timerUI.sroceString; } }