protected virtual List <string> GetDefinitionLines()
        {
            List <string> definitionLines = new List <string>();

            // Transform
            string definitionLine = "0.0," + WorldPlaybackCommon.DataType1Transform + "," + WorldPlaybackCommon.DataType2TransformDef;             // Elapsed time is dummy.

            foreach (Transform targetTransform in this.targetTransforms)
            {
                // Make a header line
                definitionLine += "\t" + WorldPlaybackCommon.GetLinkPath(targetTransform);
            }

            definitionLines.Add(definitionLine);

            // Video Player
            if (this.isReplayVideoPlayers)
            {
                definitionLine = "0.0," + WorldPlaybackCommon.DataType1VideoPlayer + "," + WorldPlaybackCommon.DataType2VideoPlayerDef;                 // Elapsed time is dummy.

                foreach (VideoPlayer targetVideoPlayer in this.targetVideoPlayers)
                {
                    // Make a header line
                    definitionLine += "\t" + WorldPlaybackCommon.GetLinkPath(targetVideoPlayer.transform);
                }

                definitionLines.Add(definitionLine);
            }

            return(definitionLines);
        }
        // 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
        }
        // Use this for initialization
        protected virtual void Start()
        {
            WorldPlaybackCommon common = this.GetComponent <WorldPlaybackCommon>();

            this.filePath = common.GetFilePath();

            this.isReplayVideoPlayers = common.IsReplayVideoPlayers();

            this.targetTransforms   = common.GetTargetTransforms();               // Transform
            this.targetVideoPlayers = common.GetTargetVideoPlayers();             // Video Player
        }
Example #4
0
        public PlaybackTransformEventController(WorldPlaybackCommon playbackCommon)
        {
            this.common = playbackCommon;

            // Transform
            this.targetTransforms = this.common.GetTargetTransforms();

            this.targetTransformPathMap = new Dictionary <string, Transform>();

            foreach (Transform targetTransform in this.targetTransforms)
            {
                this.targetTransformPathMap.Add(WorldPlaybackCommon.GetLinkPath(targetTransform), targetTransform);
            }
        }
Example #5
0
        public PlaybackVideoPlayerEventController(WorldPlaybackCommon playbackCommon)
        {
            this.common = playbackCommon;

            // Video Player
            this.targetVideoPlayers = this.common.GetTargetVideoPlayers();

            this.targetVideoPlayerPathMap = new Dictionary <string, VideoPlayer>();

            foreach (VideoPlayer targetVideoPlayer in this.targetVideoPlayers)
            {
                this.targetVideoPlayerPathMap.Add(WorldPlaybackCommon.GetLinkPath(targetVideoPlayer.transform), targetVideoPlayer);
            }
        }
Example #6
0
        public PlaybackTransformEventController(WorldPlaybackCommon playbackCommon)
        {
            this.common = playbackCommon;

            // Transform
            this.targetTransforms = this.common.GetTargetTransforms();

            this.targetTransformPathMap = new Dictionary <string, Transform>();

            foreach (Transform targetTransform in this.targetTransforms)
            {
                this.targetTransformPathMap.Add(SIGVerseUtils.GetHierarchyPath(targetTransform), targetTransform);
            }

            this.IsRigidbodiesDisable = true;
            this.IsCollidersDisable   = true;
        }