I want to use a wait for seconds here or some sort of time delay and then make the image inactive but I can’t?
public void ShowImage09()
{
image09.SetActive(!image09.active);
}
I want to use a wait for seconds here or some sort of time delay and then make the image inactive but I can’t?
public void ShowImage09()
{
image09.SetActive(!image09.active);
}
public float time;
public void ShowImage09()
{
StartCoroutine(ShowImage09_CR());
}
IEnumerator ShowImage09_CR()
{
yield return new WaitForSeconds(time);
image09.SetActive(!image09.active);
}