Beispiel #1
0
    private void ApplyRarityColor()
    {
        Color32 color = rarityColors.GetColor((int)node.Rarity);
        Image   image = GetComponent <Image>();

        image.color = color;
    }
    // Start is called before the first frame update
    protected virtual void Start()
    {
        button = GetComponent <Button>();
        image  = GetComponent <Image>();

        toggleType       = Type.GetType(EnumType);
        ChildImage.color = Colors.GetColor(value);
        button.onClick.AddListener(OnClick);
    }