void OnFadeOutCompleted() { if (imageIndex >= backgrounds.Length) { cam.FadeIn(); Application.LoadLevel("MainMenu"); return; } gameObject.GetComponent <UrlButton>().urlToOpen = (imageIndex == 0 ? "www.basegames.nl" : ""); //"www.xformgames.com"); GetComponent <GUITexture>().texture = backgrounds[imageIndex]; imageIndex++; cam.FadeIn(); }
private IEnumerator CameraFadeIn() { while (fadeMt.color.a > 0) { fadeMt.SetColor("_Color", cameraFade.FadeIn(fadeMt.color, date.fadeSpeed)); yield return(null); } yield return(null); }
IEnumerator IE_ChangeToNextScene() { yield return(new WaitForSeconds(1)); m_CameraFade.FadeOut(2); yield return(new WaitForSeconds(3)); //換正確場景 GameResultManager.Instance.TriggerGameResult(GameResultManager.GameResultType.Finished); yield return(new WaitForSeconds(1)); m_CameraFade.FadeIn(3); }
public void FadeInTest() { current.FadeIn(); }
private void FadeIn() { _fade.FadeIn(); }
void InitGameEnvironment() { cameraFade.FadeIn(); }