Newer
Older
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
textshowed = GameObject.Find("nbobstacle").GetComponent<TMP_Text>();
textshowed.GetComponent<TMP_Text>().text = "Obstacles restants : " + Ui.nbObst.ToString();