public void SetPlaybackTargets() { HumanNaviPlaybackCommon common = this.GetComponent <HumanNaviPlaybackCommon>(); common.SetPlaybackTargets(); this.filePath = common.GetFilePath(); this.isReplayVideoPlayers = common.IsReplayVideoPlayers(); this.targetTransforms = common.GetTargetTransforms(); // Transform this.targetVideoPlayers = common.GetTargetVideoPlayers(); // Video Player }
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); }