Hi guys, I copied this code directly from a Unity manual, though from some reason it ain’t working…any ideas why? I get the error
Assets/Scripts/Concurrent.cs(8,47): error CS1525: Unexpected symbol )', expecting ;’
using UnityEngine;
using System.Collections;
public class Concurrent : MonoBehaviour {
void Start () {
StartCoroutine(DelayStatement));
}
IEnumerator DelayStatement()
{
Debug.Log("Started at: " + Time.fixedTime);
yield return new WaitForSeconds(3.0f);
Debug.Log("Ended at: " + Time.fixedTime);
}
}