IEnumerator FadeAlpha() { float timeDamn = .8f; float waktu = 0f; UnityEngine.UI.RawImage temp = movie.GetComponentInChildren <UnityEngine.UI.RawImage> (); while (waktu < fadeTime) { waktu += Time.deltaTime; if (waktu < timeDamn) { temp.color = new Color(0, 0, 0, waktu / fadeTime); } else { temp.color = new Color(1, 1, 1, waktu / fadeTime); } // temp.color = new Color (temp.color.r, temp.color.g, temp.color.b, waktu / fadeTime); yield return(null); } }