Hiya! So I’m working on a game completely on my own. I’m not good at all with unity or coding. So my problem is that I want to stand in a cartain area and press a button, which then switches scenes to where you can buy guns (other scene). My code atm looks like this
void OnTriggerEnter(Collider other)
{
if (other.gameObject.tag == "Player")
{
ContinueText.text = Continue;
helpText.text = "";
}
if (Input.GetButtonDown("Use"))
{
Application.LoadLevel("Shop");
Debug.Log("Loading level: Shop");
}
I added “Use” to the input manager aswell. Anyone knows what I can do to make it work? Atm I don’t get any errors.