Logo.cs 703 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using UnityEngine;
  2. using UnityEngine.SceneManagement;
  3. using System;
  4. using System.Collections;
  5. public class Logo : MonoBehaviour
  6. {
  7. #region 变量
  8. public static bool Complete;
  9. public static GameObject Camera;
  10. #endregion
  11. public void Awake()
  12. {
  13. Camera = GameObject.Find("Main Camera");
  14. AudioManager.LoadPrefs();
  15. AudioManager.SetLogoVolume();
  16. }
  17. public void Begin()
  18. {
  19. Complete = false;
  20. }
  21. public void Finish()
  22. {
  23. ResourceManager.Instance.StopAsync();
  24. Camera.SetActive(false);
  25. UIManager.InitialInstantiate();
  26. SceneManager.LoadScene(1);
  27. Complete = true;
  28. }
  29. }