Exemple #1
0
        public void OnSpeakGuidanceMessage(GuidanceMessageStatus guidanceMessageStatus)
        {
            if (HumanNaviConfig.Instance.configInfo.playbackType != HumanNaviPlaybackCommon.PlaybackTypeRecord)             // for demo mode
            {
                return;
            }

            base.AddDataLine(PlaybackGuidanceMessageEventController.GetDataLine(this.GetHeaderElapsedTime(), guidanceMessageStatus));
        }
        public override void OnReadFileButtonClick()
        {
            this.trialNo = int.Parse(this.trialNoInputField.text);

            string filePath = string.Format(Application.dataPath + HumanNaviPlaybackCommon.FilePathFormat, this.trialNo);

            this.sessionManager.ChangeEnvironment(this.trialNo);

            HumanNaviPlaybackCommon common = this.GetComponent <HumanNaviPlaybackCommon>();

            common.SetPlaybackTargets();

            this.guidanceMessageController = new PlaybackGuidanceMessageEventController(this.sapiVoiceSynthesisExternal.gameObject); // Guidance message
            this.transformController       = new PlaybackTransformEventController(common);                                           // Transform

            this.Initialize(filePath);
        }
 public void OnSpeakGuidanceMessage(GuidanceMessageStatus guidanceMessageStatus)
 {
     this.dataLines.Add(PlaybackGuidanceMessageEventController.GetDataLine(this.GetHeaderElapsedTime(), guidanceMessageStatus));
 }