private void Start()
 {
     g_resultScript           = GameObject.Find("Stageinformation").GetComponent <ResultScript>();
     g_highScoreText          = GameObject.Find("high_move_para");
     g_scoreJsonScript        = GameObject.Find("ScoreInformation").GetComponent <ScoreJsonScript>();
     g_stageInformationScript = GameObject.Find("Stageinformation").GetComponent <StageInformation>();
     //前の残りて数が現在の残りて数よりも少なかった場合
     if (g_scoreJsonScript.g_stageScore.g_stageInfo[g_stageInformationScript.Get_StageNum()].g_trouble < g_resultScript.GetRemaining())
     {
         //ハイスコアを変更させる
         g_highScoreText.GetComponent <TextMeshProUGUI>().text = g_resultScript.GetRemaining().ToString();
     }
 }
Beispiel #2
0
 void Start()
 {
     #region スクリプトの取得
     g_resultScript           = GameObject.Find(g_stageInfoName).GetComponent <ResultScript>();
     g_jsonArrayScript        = GameObject.Find(g_stageInfoName).GetComponent <JsonArray>();
     g_stageInformationScript = GameObject.Find(g_stageInfoName).GetComponent <StageInformation>();
     g_scoreJsonScript        = GameObject.Find("ScoreInformation").GetComponent <ScoreJsonScript>();
     #endregion
     if (g_scoreJsonScript.g_stageScore.g_stageInfo[g_stageInformationScript.Get_StageNum()].g_evaluation < g_resultScript.Trouble())
     {
         //jsonに数値を入れる
         g_scoreJsonScript.ChangeInfo(g_stageInformationScript.Get_StageNum(), g_resultScript.Trouble(), g_resultScript.GetRemaining());
     }
 }
Beispiel #3
0
 private void Start()
 {
     g_scoreJsonScript        = GameObject.Find("ScoreInformation").GetComponent <ScoreJsonScript>();
     g_stageInformationScript = GameObject.Find("Stageinformation").GetComponent <StageInformation>();
     GameObject.Find("Fade_Image").GetComponent <Fade_In_Out>().GameStart_Fade_In();
 }