/// <summary> /// Forces a hard redraw on the globe map and calls redraw frontiers again. This is for clearing any artifact. /// </summary> public void RedrawAll() { List <string> deletables = new List <string> (new string[] { "Cities", "Frontiers", "Mount Points", "Cursor", "LatitudeLines", "LongitudeLines", "WPMOverlay", "SphereOverlayLayer" }); Transform[] t = _map.GetComponentsInChildren <Transform> (); for (int k = 0; k < t.Length; k++) { if (t [k] == null || t [k].gameObject == null || t [k] == _map.transform) { continue; } if (deletables.Contains(t [k].gameObject.name)) { DestroyImmediate(t [k].gameObject); } } _map.Redraw(); RedrawFrontiers(); }