// 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(); }
public void AddTurns(int t) { Turns += t; TurnsText.GetComponent <TextMeshPro>().text = Turns.ToString(); if (Turns == 0) { StartCoroutine("EndLevel"); } }