Hi everyone.
Im having a big problem with sprites (SpriteManager SpriteManager 2) and Unity…
I have this code:
using UnityEngine;
using System.Collections;
public class QuestItemsSpriteController : MonoBehaviour {
Update () {
StartDelay();
Sprite.PlayAnim(0);
StartDelay();
Sprite.PlayAnim(1);
StartDelay();
Sprite.PlayAnim(2);
}
IEnumerator StartDelay(){
yield return StartCoroutine(WaitSeconds (3.0f));
}
IEnumerator WaitSeconds (float delay) {
float timer = Time.time + delay;
while (Time.time < timer) {
yield return null;
}
}
}
But the compiler send me this error message:
error CS1520: Class, struct, or interface method must have a return type
Any solution???
Thx