Пример #1
0
 private void WaitScreenEffect()
 {
     ScriptCommandParams.ScreenEffectInfo screenEffectInfo = this.scriptEngine.GetScreenEffectInfo();
     if (screenEffectInfo.start)
     {
         this.controlToGame.StartEffect(screenEffectInfo.type, new Action(base.ResumeScript));
     }
     else
     {
         this.controlToGame.StopEffect(screenEffectInfo.type);
         base.ResumeScript();
     }
 }
Пример #2
0
 public void SkipCommand(TutorialCommandSkip.SkipMode mode)
 {
     this.skipMode = mode;
     this.scriptEngine.StartSkip(new Action <ScriptEngine.Status, int>(base.ActionScriptCommand));
     if (!string.IsNullOrEmpty(this.charaFaceId))
     {
         this.tutorialUI.Thumbnail.SetFace(this.charaFaceId);
     }
     if (this.screenShake == TutorialCommandSkip.ScreenShakeActionType.START)
     {
         ScriptCommandParams.ShakeInfo shakeInfo = this.scriptEngine.GetShakeInfo();
         this.controlToGame.ShakeBackGround(shakeInfo.intensity, 0f, null);
     }
     else if (this.screenShake == TutorialCommandSkip.ScreenShakeActionType.STOP)
     {
         this.controlToGame.SuspendShakeBackGround();
     }
     if (this.screenEffect == TutorialCommandSkip.ScreenEffectSirenActionType.START)
     {
         ScriptCommandParams.ScreenEffectInfo screenEffectInfo = this.scriptEngine.GetScreenEffectInfo();
         this.controlToGame.StartEffect(screenEffectInfo.type, null);
     }
     else if (this.screenEffect == TutorialCommandSkip.ScreenEffectSirenActionType.STOP)
     {
         ScriptCommandParams.ScreenEffectInfo screenEffectInfo2 = this.scriptEngine.GetScreenEffectInfo();
         this.controlToGame.StopEffect(screenEffectInfo2.type);
     }
     if (0 < this.seLoopPlayList.Count)
     {
         for (int i = 0; i < this.seLoopPlayList.Count; i++)
         {
             ScriptCommandParams.SeInfo seInfo = this.seLoopPlayList[i];
             this.controlToGame.SetSe(seInfo.fileName, seInfo.play, 0f, true, seInfo.pitch);
         }
     }
     base.ResumeScript();
 }