public void OnApplicationQuit() { if (Destination != null) { Destination.Disconnect(); Destination = null; } }
public void SetNewObject(GraspRegion target) { if (Destination != null && Destination != target) { Destination.Disconnect(); Destination = null; } if (Destination == null) { Destination = target; ArmTree = new Tree(); GoalTree = new Tree(); SolutionPathList = new SolutionList(); //Destination.Connect(this); } }