Hello, Im 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);
}
}