Beispiel #1
0
        public void ClearElement()
        {
            nameText.text = "";
            descText.text = "";

            iconDisplayImage.sprite = null;
            iconDisplayImage.color  = Color.white;

            SelectedWindowElement = null;
        }
Beispiel #2
0
        public void DisplayElement(SelectionWindowElement windowElementUi)
        {
            SelectedWindowElement = windowElementUi;

            var element = windowElementUi.Element;
            var img     = windowElementUi.IconImage;

            nameText.text = element.Name;
            descText.text = element.Description;

            iconDisplayImage.sprite = element.ElementSprite;
            iconDisplayImage.color  = element.ElementColor;

            iconDisplayImage.type       = img.type;
            iconDisplayImage.fillCenter = img.fillCenter;
        }