CutePet/Assets/Scripts/Main.cs

27 lines
598 B
C#
Raw Permalink Normal View History

2024-10-25 11:10:04 +08:00
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<BeginPanel>();
StartCoroutine(SleepTime());
}
// Update is called once per frame
void Update()
{
}
private IEnumerator SleepTime()
{
yield return new WaitForSeconds(3);
SceneManager.LoadScene("LoginScene");
UIManager.Instance.HidePanel<BeginPanel>(false);
}
}