Unity gives me an Error when I use this code
using UnityEngine;
using System.Collections;
public class Changelevel : MonoBehaviour {
// Use this for initialization
void Start () {
StartCoroutine Verzögerung ();
}
// Update is called once per frame
void Update () {
}
float zeit = 5.00f ;
IEnumerator Verzögerung () {
yield return new WaitForSeconds ( zeit) ;
Application.LoadLevel(" Credits ");
}
}
Assets/Text anim/Changelevel.cs(12,45): error CS1525: Unexpected symbol (', expecting
)‘, ,',
;’, [', or
=’