12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- 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();
- DelayCall.Call
- (
- 1,
- () =>
- {
- if (Initializer.Instance.DebugMode)
- {
- Finish();
- }
- }
- );
- }
- public void Begin()
- {
- Complete = false;
- }
- public void Finish()
- {
- ResourceManager.Instance.StopAllAsync();
- Camera.SetActive(false);
- UIManager.Init(Initializer.Instance.DebugMode);
- SceneManager.LoadScene(1);
- Complete = true;
- }
- }
|