27 lines
598 B
C#
27 lines
598 B
C#
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);
|
|
}
|
|
}
|