G
GaurangSavlani
Guest
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngineSceneManagment;
public class SceneChanger : MonoBehaviour
{
public static int SceneNumber;
private void Start()
{
if(SceneNumber--0)
{
StartCoroutine (ToMainMenu());
}
IEnumerator ToMainMenu();
{
yield return New WaitForSeconds(5);
SceneNumber - 1;
SceneManager.LoadScene(1);
}
}
Continue reading...
using System.Collections.Generic;
using UnityEngine;
using UnityEngineSceneManagment;
public class SceneChanger : MonoBehaviour
{
public static int SceneNumber;
private void Start()
{
if(SceneNumber--0)
{
StartCoroutine (ToMainMenu());
}
IEnumerator ToMainMenu();
{
yield return New WaitForSeconds(5);
SceneNumber - 1;
SceneManager.LoadScene(1);
}
}
Continue reading...