Am getting an build error, Unity points out that the error is on the Movie texture. My code works fine in unity Game window, Unity throws me an error only when I try to build it for mobile platform.
Code:
public class Jueqiao_Weapon_Animation_Manager : MonoBehaviour
{
public MovieTexture movie;
public GameObject Jueqiao_Animation_I;
void Start()
{
StartCoroutine(Jueqiao_Weapon_Loaded(20.5f));
MovieTexture MT = Jueqiao_Animation_I.GetComponent<RawImage>().texture as MovieTexture;
MT.Play();
}
IEnumerator Jueqiao_Weapon_Loaded(float delay)
{
yield return new WaitForSeconds(delay);
Application.LoadLevel("Jueqiao_WeaponLoaded_Scene");
}
}