/// <inheritdoc/> void IAddElementsHandler.AddingCancelled(Vector3 addPosition) { if (newWaypointInstance.CanBeRemoved) { newWaypointInstance.RemoveFromMap(); newWaypointInstance.Dispose(); } newWaypointInstance = null; isAddingWaypoints = false; }
/// <inheritdoc/> void IAddElementsHandler.AddingCancelled(Vector3 addPosition) { if (waypointInstance != null) { waypointInstance.RemoveFromMap(); waypointInstance.Dispose(); } waypointInstance = null; isAddingWaypoints = false; }