Ejemplo n.º 1
0
    //Start is called before the first frame update
    void Start()
    {
        resourceList = storageOwner.GetActiveResourceList();
        foreach (var resource in resourceList)
        {
            GenerateDial(resource);
        }

        foreach (var kvp in updateDial)
        {
            var popText = Instantiate(popTextGO);
            popText.transform.SetParent(kvp.Value.GetComponentInChildren <Image>().transform);
            popText.GetComponent <RectTransform>().anchoredPosition = Vector3.zero;
            popText.GetComponentInChildren <TextMeshProUGUI>().SetText("Transferred");
        }
    }