Question by
abhishek7 · Apr 13, 2016 at 07:47 PM ·
simplesyntax-error
Unexpected Symbol '(' ?
Here's my code: using UnityEngine; using System.Collections;
public class LoadLevel : MonoBehaviour {
bool pause = false;
public GameObject Button;
// Use this for initialization
public void LoadScene(int level){
Application.LoadLevel (level);
}
Button.gameObject.SetActive(true);
}
Why?
Comment
Best Answer
Answer by Jessespike · Apr 13, 2016 at 07:56 PM
That line of code needs to be inside of the function.