SceneFirst.cs 513 B

123456789101112131415161718192021222324252627
  1. using System;
  2. using System.Collections;
  3. using UnityEngine;
  4. public class SceneFirst : MonoBehaviour
  5. {
  6. private void Start()
  7. {
  8. GameMain.Instance.MainCamera.FadeOut(0f, false, null, true, default(Color));
  9. base.StartCoroutine(this.WaitLoad());
  10. }
  11. private IEnumerator WaitLoad()
  12. {
  13. while (GameMain.Instance.CharacterMgr.IsBusy())
  14. {
  15. Debug.Log("wait load chara");
  16. yield return new WaitForSeconds(1f);
  17. }
  18. GameMain.Instance.LoadScene("SceneLogo");
  19. yield break;
  20. }
  21. private void Update()
  22. {
  23. }
  24. }