1234567891011121314151617181920212223242526 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.SceneManagement;
- public class LogoSenceMgr : MonoBehaviour
- {
- public GameObject go;
- public float time;
- AsyncOperation async;
- private void OnEnable()
- {
- Invoke("LoadSence", 3);
- }
- public void LoadSence()
- {
- go.SetActive(true);
- Invoke("LoadLoginSence", time);
- async = SceneManager.LoadSceneAsync("Login");
- async.allowSceneActivation = false;
- }
- public void LoadLoginSence()
- {
- async.allowSceneActivation = true;
- }
- }
|