Exemple #1
0
    public void OnCreateLayerBtnClicked(InputField layerName)
    {
        if (mapLayers.GetMapLayer(layerName.text) == null)
        {
            mapLayers.AddLayer(layerName.text);
            createLayerUI(mapLayers.GetMapLayer(layerName.text), ScrollViewContent.transform.childCount);
        }

        layerName.transform.parent.gameObject.SetActive(false);
    }