"create a timer with a main text that branched into three different floor lantai1,lantai5 and lantai10. this timer script has and different name because i want to make its specific"
xxxxxxxxxx
public class FloorTimer : MonoBehaviour
{
public float timeRemaining = 300; // 5 minutes
public Text mainText;
public Text lantai1Text;
public Text lantai5Text;
public Text lantai10Text;
void Update()
{
timeRemaining -= Time.deltaTime;
if (timeRemaining > 0)
{
DisplayTime(timeRemaining);
}
else
{
mainText.text = "Time's up!";
lantai1Text.text = "Time's up!";