/// <summary> /// Takes a gameobject, should be one of our waypoints, and deletes it from the map, and list /// </summary> /// <param name="deletedPoint">the game object of one of our wapoints</param> /// <returns>true if success, false if failure.</returns> public bool deleteWaypoint(Waypoint deletedPoint) { OnlineMapsMarker3DManager.RemoveItem(deletedPoint.Marker); // remove the marker points.Remove(deletedPoint); // remove from the points list Destroy(deletedPoint.getGameObject()); // destroy the game object within points. remove.removeUI(); remove.resetSphereStatus(); OnlineMaps.instance.Redraw(); return(true); }
public void RemoveMarker3D(OnlineMapsMarker3D marker) { OnlineMapsMarker3DManager.RemoveItem(marker); }