// Use this for initialization
        protected virtual void Start()
        {
            WorldPlaybackCommon common = this.GetComponent <WorldPlaybackCommon>();

            this.filePath = common.GetFilePath();

            this.transformController   = new PlaybackTransformEventController(common);                // Transform
            this.videoPlayerController = new PlaybackVideoPlayerEventController(common);              // Video Player
        }
Example #2
0
        protected virtual void StartInitializing()
        {
            //this.transformController.StartInitializingEvents(); // Transform
            this.videoPlayerController.StartInitializingEvents();             // Video Player

            //this.StartInitializingEvents();

            //WorldPlaybackCommon common = this.GetComponent<WorldPlaybackCommon>();
            //this.transformController = new PlaybackTransformEventController(common);  // Transform
            this.transformController = new PlaybackTransformEventController(this.filePath);              // Transform
            this.transformController.StartInitializingEvents();
            //this.stringController = new PlaybackStringEventController(this.stringDataDestinations);  // String Data
            //this.stringController.StartInitializingEvents();
        }
        protected virtual List <string> GetDefinitionLines()
        {
            List <string> definitionLines = new List <string>();

            // Transform
            definitionLines.Add(PlaybackTransformEventController.GetDefinitionLine(this.targetTransforms));

            // Video Player
            if (this.isReplayVideoPlayers)
            {
                definitionLines.Add(PlaybackVideoPlayerEventController.GetDefinitionLine(this.targetVideoPlayers));
            }

            return(definitionLines);
        }
 protected virtual void SaveTransforms()
 {
     this.dataLines.Add(PlaybackTransformEventController.GetDataLine(this.GetHeaderElapsedTime(), this.targetTransforms));
 }