Example #1
0
 private void Update()
 {
     if ((this.IsEnableInputEscape && ((WrapperMoviePlayer.GetInstance() == null) || !WrapperMoviePlayer.IsPlaying())) && Input.GetKeyDown(0x1b))
     {
         this.OnOpenDialogExitGame();
     }
 }
Example #2
0
        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;
        }
Example #3
0
        public override bool Wait(AdvEngine engine)
        {
            if (engine.UiManager.IsPointerDowned)
            {
                WrapperMoviePlayer.Cancel();
            }
            bool isWait = WrapperMoviePlayer.IsPlaying();

            return(isWait);
        }
 private void Awake()
 {
     if (null != instance)
     {
         Object.Destroy(base.get_gameObject());
     }
     else
     {
         instance = this;
     }
 }
Example #5
0
 void Awake()
 {
     if (null != instance)
     {
         Destroy(this.gameObject);
         return;
     }
     else
     {
         instance = this;
     }
 }
		void Awake()
		{
			if (null != instance)
			{
				Destroy(this.gameObject);
				return;
			}
			else
			{
				instance = this;
			}
		}
Example #7
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;
 }
Example #8
0
        void Update()
        {
            //Android版・バックキーでアプリ終了確認
            if (IsEnableInputEscape)
            {
                if (WrapperMoviePlayer.GetInstance() != null && WrapperMoviePlayer.IsPlaying())
                {
                    return;
                }

                if (Input.GetKeyDown(KeyCode.Escape))
                {
                    OnOpenDialogExitGame();
                }
            }
        }
 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;
 }
Example #10
0
        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;
        }
Example #13
0
 public override void DoCommand(AdvEngine engine)
 {
     WrapperMoviePlayer.Play(label, loop);
     time = 0;
 }
Example #14
0
 public override void DoCommand(AdvEngine engine)
 {
     WrapperMoviePlayer.Play(label);
 }