示例#1
0
 private void Update()
 {
     if ((this.IsEnableInputEscape && ((WrapperMoviePlayer.GetInstance() == null) || !WrapperMoviePlayer.IsPlaying())) && Input.GetKeyDown(0x1b))
     {
         this.OnOpenDialogExitGame();
     }
 }
示例#2
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;
 }
示例#3
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;
 }