using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; public class Main : MonoBehaviour { // Start is called before the first frame update void Start() { UIManager.Instance.ShowPanel(); StartCoroutine(SleepTime()); } // Update is called once per frame void Update() { } private IEnumerator SleepTime() { yield return new WaitForSeconds(3); SceneManager.LoadScene("LoginScene"); UIManager.Instance.HidePanel(false); } }