SceneLoader.cs 442 B

12345678910111213141516171819202122
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.SceneManagement;
  5. using UnityEngine.UI;
  6. public class SceneLoader : MonoBehaviour
  7. {
  8. AsyncOperation LoadingOperation;
  9. // Start is called before the first frame update
  10. void Start()
  11. {
  12. LoadingOperation = SceneManager.LoadSceneAsync("DemoScene");
  13. }
  14. // Update is called once per frame
  15. void Update()
  16. {
  17. }
  18. }