Skip to content

Commit 4dcaab0

Browse files
committed
chore: cleaning up some old code
1 parent 2c79cd4 commit 4dcaab0

2 files changed

Lines changed: 2 additions & 7 deletions

File tree

Assets/Scripts/TrajectoryPlanner/Probes/ProbeManager.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -271,12 +271,8 @@ public void SetActive(bool active)
271271
Debug.Log($"{name} becoming {(active ? "active" : "inactive")}");
272272
#endif
273273

274-
if (active)
275-
ColliderManager.AddProbeColliderInstances(_probeColliders, true);
276-
else
277-
ColliderManager.AddProbeColliderInstances(_probeColliders, false);
278-
279-
GetComponent<CartesianProbeController>().enabled = active;
274+
ColliderManager.AddProbeColliderInstances(_probeColliders, active);
275+
GetComponent<ProbeController>().enabled = active;
280276

281277
UIUpdateEvent.Invoke();
282278
_probeController.MovedThisFrameEvent.Invoke();

Assets/Scripts/TrajectoryPlanner/TrajectoryPlannerManager.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,6 @@ public void SetActiveProbe(ProbeManager newActiveProbeManager)
528528
// Tell the old probe that it is now in-active
529529
if (ProbeManager.ActiveProbeManager != null)
530530
{
531-
ProbeManager.ActiveProbeManager.GetComponent<ProbeController>().enabled = false;
532531
ProbeManager.ActiveProbeManager.SetActive(false);
533532
}
534533

0 commit comments

Comments
 (0)