12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- using UnityEngine;
- using UnityEngine.SceneManagement;
- using System;
- using System.Collections;
- public class Logo : MonoBehaviour
- {
- #region 变量
- public static bool Complete;
-
- public static GameObject Camera;
- #endregion
-
- public void Awake()
- {
- Camera = GameObject.Find("Main Camera");
-
- AudioManager.LoadPrefs();
- AudioManager.SetLogoVolume();
- }
- public void Begin()
- {
- Complete = false;
- }
- public void Finish()
- {
- ResourceManager.Instance.StopAsync();
- Camera.SetActive(false);
- UIManager.InitialInstantiate();
- SceneManager.LoadScene(1);
- Complete = true;
- }
- }
|