- Home /
Question by
IdyllicFox · Sep 06, 2014 at 10:38 PM ·
errorfunction
error CS1525: Unexpected symbol `(', expecting `)', `,', `;', `[', or `='
Hello, I`m new to C# and I`ve been following some tutorials on the UI in 4.6 and in my script I get this error: Assets/Scripts/Menu/Functions.cs(19,38): error CS1525: Unexpected symbol (', expecting
)', ,',
;', [', or
='
Here is my script:
using UnityEngine;
using System.Collections;
public class Functions : MonoBehaviour {
public GameObject Options;
public GameObject Main;
public void OptionsButton()
{
SendMessageOptions.SetActive (true);
Main.SetActive (false);
}
public void SaveClose()
{
StartCoroutine ("waitTimer", 1);
IEnumerator waitTimer(float waitTime)
{
yield return new WaitForSeconds(waitTime);
}
}
Comment
Answer by tanoshimi · Sep 06, 2014 at 10:46 PM
Move the } on line 23 to line 18, and also add a final closing }.
Thanks that worked but I now get this error:
Assets/Scripts/$$anonymous$$enu/Functions.cs(11,44): error CS0117: UnityEngine.Send$$anonymous$$essageOptions' does not contain a definition for
SetActive'