what to do. I am totally new for this ,I dont know what to do

  • Thread starter Thread starter GaurangSavlani
  • Start date Start date
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...
 
Back
Top