Hello,
Don’t see the compile error in my code:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class SceneLoader : MonoBehaviour
{
public void LoadNextScene()
{
int currentSceneIndex = SceneManager.GetActiveScene().buildIndex;
SceneManager.LoadScene(currentSceneIndex + 1);
}
}
SO I can’t link script to button.
See my post here with screen shots - Script Compile Error - Magic Numbers UI - Unity Courses / Ask - GameDev.tv
Thanks,
Mike