2020-02-20 12:29:15 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
using UnityEngine.SceneManagement;
|
|
|
|
|
|
|
|
|
|
public class ChangeScene : MonoBehaviour
|
|
|
|
|
{
|
|
|
|
|
// Start is called before the first frame update
|
|
|
|
|
void Start()
|
|
|
|
|
{
|
|
|
|
|
StartCoroutine(ChangeSceneToGame());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private IEnumerator ChangeSceneToGame()
|
|
|
|
|
{
|
|
|
|
|
yield return new WaitForSeconds(5);
|
2020-02-26 12:05:41 +00:00
|
|
|
|
SceneManager.LoadScene(2);
|
2020-02-20 12:29:15 +00:00
|
|
|
|
}
|
|
|
|
|
}
|