Пример #1
0
    public void RemoveMarker3DAt(int markerIndex)
    {
        if (OnRemoveMarker3DAt != null && OnRemoveMarker3DAt(markerIndex))
        {
            return;
        }

        if (markerIndex < 0 || markerIndex >= OnlineMapsMarker3DManager.CountItems)
        {
            return;
        }

        OnlineMapsMarker3D marker = OnlineMapsMarker3DManager.instance[markerIndex];

        if (marker.instance != null)
        {
            OnlineMapsUtils.Destroy(marker.instance);
        }
        marker.Dispose();

        OnlineMapsMarker3DManager.RemoveItemAt(markerIndex);
    }