Compiler error when i build for IOS runs fine in editor. and it is this script that is causing the error.
using UnityEngine;
using System.Collections;
[RequireComponent (typeof(AudioSource))]
public class splashpager : MonoBehaviour {
public MovieTexture movie;
void OnGUI()
{
GUI.DrawTexture(new Rect(0, 0, Screen.width, Screen.height), movie);
}
void Start ()
{
audio.clip = movie.audioClip;
audio.Play();
movie.Play();
}
}