hi! I am trying to make it when people click on the game object it switches scene but with my current code it switches scene wherever i click
here is my code:
using UnityEngine;
using System.Collections;
public class Newlvl : MonoBehaviour {
void Update() {
if (Input.GetMouseButtonDown(0))
Application.LoadLevel(“lvl2”);
}
}