コード例 #1
0
 // Start is called before the first frame update
 void Start()
 {
     ScoresText = transform.GetChild(0).GetChild(0);
     TurnsText  = transform.GetChild(1).GetChild(0);
     ScoresText.GetComponent <TextMeshPro>().text = Scores.ToString();
     TurnsText.GetComponent <TextMeshPro>().text  = Turns.ToString();
 }
コード例 #2
0
 public void AddTurns(int t)
 {
     Turns += t;
     TurnsText.GetComponent <TextMeshPro>().text = Turns.ToString();
     if (Turns == 0)
     {
         StartCoroutine("EndLevel");
     }
 }