I've tried adding a )
where it says to, but that adds more problems. The error I get states:
Assets/LevelComplete.cs(12,64): error CS1026: ) expected.
What I'm trying to do here is use the if statement to find out if the Active Scene is in the specific range. Also, for a little more context, All I need is a range, and not the code to pick a number in that range if that helps.
using System;
using UnityEngine;
using UnityEngine.SceneManagement;
public class LEvelComplete : MonoBehavior
{
public void LoadNextLevel()
{
int Active12 = Range(1, 3);
int Load34 = UnityEngine.Random.Range(3, 5);
if (SceneManager.GetActiveScene().buildIndex = Active12
{
SceneManager.LoadScene(Load34);
}
}
}