Ejemplo n.º 1
0
 private void EnableDebugShowCoursePlot(bool toEnable) {
     if (toEnable) {
         if (__coursePlot == null) {
             string name = __coursePlotNameFormat.Inject(DebugName);
             __coursePlot = new CoursePlotLine(name, _helm.ApCourse.Cast<INavigable>().ToList());
         }
         AssessDebugShowCoursePlot();
     }
     else {
         D.AssertNotNull(__coursePlot);
         __coursePlot.Dispose();
         __coursePlot = null;
     }
 }
Ejemplo n.º 2
0
 private void EnableDebugShowCoursePlot(bool toEnable) {
     if (toEnable) {
         if (__coursePlot == null) {
             string name = __coursePlotNameFormat.Inject(DebugName);
             Transform lineParent = DynamicObjectsFolder.Instance.Folder;
             var course = _navigator.ApCourse.Cast<INavigable>().ToList();
             __coursePlot = new CoursePlotLine(name, course, lineParent, Constants.One, GameColor.Yellow);
         }
         AssessDebugShowCoursePlot();
     }
     else {
         D.AssertNotNull(__coursePlot);
         __coursePlot.Dispose();
         __coursePlot = null;
     }
 }