ive been getting the error
Assets/SplashScreenLoader.cs(8,13): error CS1519: Unexpected symbol `float’ in class, struct, or interface member declaration
when i make this loading screen script what do i do?
thanks
using UnityEngine;
using System.collections;
public class SplashScreenLoader : MonoBehaviour {
public float delayTime = 3;
public bool done = false
timer float;
void Start () {
timer = delayTime;
StartCoroutine( “SomeFunction” );
}
void Update () {
if( timer > 0 ) {
timer -= Time.deltaTime;
return;
}
if( done )
Application.LoadLevel( 1 );
}
IEnumerator SomeFunction() {
//Do something here
//some yeild opteration untill it has completed
yield return null;
//if the we did what we wanted and got it all done withour error
done = true;
}
}