/// <summary> /// Method responsible for deleting junction /// </summary> /// <param name="junction">Selected junction</param> void DeleteJunction(Junction junction) { foreach (Joint jo in junction.joints) { script.graphData.allStreets.Remove(jo.street); } script.graphData.allJunctions.Remove(junction); junction.Destroy(); RefreshData(); }