public override bool Wait(AdvEngine engine) { if (engine.UiManager.IsPointerDowned) { WrapperMoviePlayer.Cancel(); } bool isWait = WrapperMoviePlayer.IsPlaying(); return(isWait); }
void Update() { //Android版・バックキーでアプリ終了確認 if (IsEnableInputEscape) { if (WrapperMoviePlayer.GetInstance() != null && WrapperMoviePlayer.IsPlaying()) { return; } if (Input.GetKeyDown(KeyCode.Escape)) { OnOpenDialogExitGame(); } } }
public override bool Wait(AdvEngine engine) { if (engine.UiManager.IsInputTrig) { WrapperMoviePlayer.Cancel(); } bool isWait = WrapperMoviePlayer.IsPlaying(); if (waitTime >= 0) { if (time >= waitTime) { isWait = false; } time += engine.Time.DeltaTime; } return(isWait); }
public override bool Wait(AdvEngine engine) { if (engine.UiManager.IsInputTrig) { WrapperMoviePlayer.Cancel(); } bool flag = WrapperMoviePlayer.IsPlaying(); if (this.waitTime >= 0f) { if (this.time >= this.waitTime) { flag = false; } this.time += Time.get_deltaTime(); } return(flag); }
IEnumerator CoPlay() { isPlaying = true; RawImage rawImage = GetComponent <RawImage>(); rawImage.CrossFadeAlpha(0, 0, true); foreach (FadeTextureInfo info in fadeTextures) { rawImage.texture = info.texture; bool allSkip = false; if (info.texture) { rawImage.CrossFadeAlpha(1, info.fadeInTime, true); float time = 0; while (!IsInputSkip(info)) { yield return(null); time += Time.deltaTime; if (time > info.fadeInTime) { break; } } time = 0; while (!IsInputSkip(info)) { yield return(null); time += Time.deltaTime; if (time > info.duration) { break; } } allSkip = IsInputAllSkip; rawImage.CrossFadeAlpha(0, info.fadeOutTime, true); yield return(new WaitForSeconds(info.fadeOutTime)); } else if (!string.IsNullOrEmpty(info.moviePath)) { WrapperMoviePlayer.Play(info.moviePath); while (WrapperMoviePlayer.IsPlaying()) { yield return(null); if (IsInputSkip(info)) { WrapperMoviePlayer.Cancel(); } allSkip = IsInputAllSkip; } } if (allSkip) { break; } yield return(null); } isPlaying = false; }
private void Update() { if ((this.IsEnableInputEscape && ((WrapperMoviePlayer.GetInstance() == null) || !WrapperMoviePlayer.IsPlaying())) && Input.GetKeyDown(0x1b)) { this.OnOpenDialogExitGame(); } }