예제 #1
0
 public void HighlightEntirePath() {
   CameraPathTinter t = WidgetManager.m_Instance.PathTinter;
   for (int i = 0; i < Path.PositionKnots.Count; ++i) {
     CameraPathPositionKnot pk = Path.PositionKnots[i];
     pk.RegisterHighlight(0, true);
     t.TintKnot(pk);
   }
   for (int i = 0; i < Path.RotationKnots.Count; ++i) {
     CameraPathRotationKnot rk = Path.RotationKnots[i];
     rk.RegisterHighlight(0, true);
     t.TintKnot(rk);
   }
   for (int i = 0; i < Path.SpeedKnots.Count; ++i) {
     CameraPathSpeedKnot sk = Path.SpeedKnots[i];
     sk.RegisterHighlight(0, true);
     t.TintKnot(sk);
   }
   for (int i = 0; i < Path.FovKnots.Count; ++i) {
     CameraPathFovKnot fk = Path.FovKnots[i];
     fk.RegisterHighlight(0, true);
     t.TintKnot(fk);
   }
   for (int i = 0; i < Path.Segments.Count; ++i) {
     t.TintSegment(m_Path.Segments[i]);
   }
 }