Skip to content

Instantly share code, notes, and snippets.

@deadasadodo
Created May 5, 2022 04:33
Show Gist options
  • Save deadasadodo/a6e64e354bf37d70602af52dee230e2e to your computer and use it in GitHub Desktop.
Save deadasadodo/a6e64e354bf37d70602af52dee230e2e to your computer and use it in GitHub Desktop.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class startgame : MonoBehaviour
{
public void loadgame()
{
SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex +1);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment