Exemplo n.º 1
0
        public void Initialize(CommanderGizmo commanderGizmo, Item item)
        {
            OwnerGizmo = commanderGizmo;
            Item       = item;

            var itemEntry = DomEdit.I.items.GetItem(item.ItemName);

            icon.sprite = itemEntry.Sprite;
        }
Exemplo n.º 2
0
        public void Initialize(CommanderGizmo owner, MagicOverride magic)
        {
            OwnerGizmo = owner;
            Magic      = magic;

            var itemEntry = DomEdit.I.magicPaths.GetEntry(Magic.Path);

            icon.sprite     = itemEntry.Sprite;
            valueLabel.text = magic.MagicValue.ToString();
        }