using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class onetotwo : MonoBehaviour{
public GameObject twelveAM;
public GameObject oneam;
public GameObject twoam;
public GameObject threeAM;
public GameObject fourAM;
public GameObject fiveAM;
private float delayBeforeLoading = 5f;
private float timeElapsed;
public void Update()
{
timeElapsed += Time.deltaTime;
if (timeElapsed > delayBeforeLoading)
{
twelveAM.SetActive(false);
oneam.SetActive(true);
twoam.SetActive(false);
threeAM.SetActive(false);
fourAM.SetActive(false);
fiveAM.SetActive(false);
}
{
delayBeforeLoading = 10f;
if (timeElapsed > delayBeforeLoading)
{
//changes time from 1 to 2
twelveAM.SetActive(false);
oneam.SetActive(false);
twoam.SetActive(true);
threeAM.SetActive(false);
fourAM.SetActive(false);
fiveAM.SetActive(false);
}
}
}
}