1
I made a script along with the coroutine, but it kind of doesn’t work without error My real intention is to make the button have a delay of up to 10 seconds before transitioning to another song
could give me a strength?
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class canvas2ecanvas3 : MonoBehaviour
{
public GameObject canvas2,canvas3;
public void start(){
StartCoroutine(cena ());
}
IEnumerator cena(){
canvas2.SetActive(false);
canvas3.SetActive(true);
yield return new WaitForSeconds (10);
}
public void voltar(){
canvas2.SetActive(true);
canvas3.SetActive(false);
}
}
Put your code in text, help when copying and pasting to help you ;)
– leofontes
I’ll try harder he’s not going
– Nitecki