Esempio n. 1
0
    public GameObject GetCanvasLayerChild(CanvasLayer canvasLayer, string key)
    {
        Dictionary <string, GameObject> layerChilds = canvasLayerChildByKey[canvasLayer];

        GameObject child;

        if (!layerChilds.TryGetValue(key, out child))
        {
            Debug.LogWarning("Can't find child id " + key + " in CanvasLayer." + canvasLayer.ToString());
        }

        return(child);
    }