Skip to content

Instantly share code, notes, and snippets.

@deadasadodo
Created March 19, 2022 22:39
Show Gist options
  • Save deadasadodo/3439d4f29b57996d033968e4c2998996 to your computer and use it in GitHub Desktop.
Save deadasadodo/3439d4f29b57996d033968e4c2998996 to your computer and use it in GitHub Desktop.
//by callum
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class next : MonoBehaviour
{
private void OnTriggerEnter(Collider other)
{
SceneManager.LoadScene(2);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment