예제 #1
0
        public override void Update(GameTime gameTime)
        {
            base.Update(gameTime);

            // Fix Entity Tracker Position
            if (entityTracker != null && entityTracker.TrackedEntity != null)
            {
                entityTracker.FixPosition();
            }

            for (int i = 0; i < trackers.Count; i++)
            {
                trackers[i].FixPosition();

                // Append Lines
                if (trackers[i].Connection != null)
                {
                    Append(trackers[i].Connection);
                }

                // Append Control Points
                if (i + 1 < trackers.Count && CCUI.selectedInterp == 2 && trackers[i].Connection != null)
                {
                    Append(trackers[i].Connection.ControlPoint);
                }
            }

            // Fix Line Position
            PathTrackers.FixLinePosition();
        }