BetaFinishChangeScene.cs 435 B

12345678910111213141516171819202122232425262728
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.SceneManagement;
  5. public class BetaFinishChangeScene : MonoBehaviour {
  6. [SceneName]
  7. public string sceneName;
  8. private void Start()
  9. {
  10. Invoke("LoadScene", 20f);
  11. }
  12. public void ChangeScene()
  13. {
  14. LoadScene();
  15. }
  16. void LoadScene()
  17. {
  18. SceneManager.LoadScene(sceneName);
  19. }
  20. }