public override void DoCommand(AdvEngine engine) { string root = FilePathUtil.Combine(engine.DataManager.SettingDataManager.BootSetting.ResourceDir, "Movie"); WrapperMoviePlayer.Play(FilePathUtil.Combine(root, label), loop, cancel); time = 0; }
public override void DoCommand(AdvEngine engine) { if (WrapperMoviePlayer.GetInstance().OverrideRootDirectory) { WrapperMoviePlayer.Play(FilePathUtil.Combine(WrapperMoviePlayer.GetInstance().RootDirectory, label), loop, cancel); } else { string root = FilePathUtil.Combine(engine.DataManager.SettingDataManager.BootSetting.ResourceDir, "Movie"); WrapperMoviePlayer.Play(FilePathUtil.Combine(root, label), loop, cancel); } time = 0; }
public override void DoCommand(AdvEngine engine) { if (WrapperMoviePlayer.GetInstance().OverrideRootDirectory) { string[] args = new string[] { WrapperMoviePlayer.GetInstance().RootDirectory, this.label }; WrapperMoviePlayer.Play(FilePathUtil.Combine(args), this.loop, this.cancel); } else { string[] textArray2 = new string[] { engine.DataManager.SettingDataManager.BootSetting.ResourceDir, "Movie" }; string str = FilePathUtil.Combine(textArray2); string[] textArray3 = new string[] { str, this.label }; WrapperMoviePlayer.Play(FilePathUtil.Combine(textArray3), this.loop, this.cancel); } this.time = 0f; }
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; }
public override void DoCommand(AdvEngine engine) { WrapperMoviePlayer.Play(label, loop); time = 0; }
public override void DoCommand(AdvEngine engine) { WrapperMoviePlayer.Play(label); }