Tell me what to do if I use a script to switch between scenes, then when I switch from 1 to 2, then 2 nothing works, no buttons and functions
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine. SceneManagement;
public class Switch: MonoBehaviour
{
public void scenLoad(int numbScen)
{
SceneManager.LoadScene(numbScen);
}
}
this is script