private void Awake() { if (instancia == null) { instancia = this; } }
void Awake() { toolTip = tooltipRectTransform.GetComponent <ToolTipUI>(); type = (Item.EquipmentType)Enum.Parse(typeof(Item.EquipmentType), slotType, true); icon = transform.Find("Icon").GetComponent <Image>(); defaultSprite = icon.sprite; button = transform.GetComponent <Button>(); isItemEquiped = false; }
void Awake() { toolTip = tooltipRectTransform.GetComponent <ToolTipUI>(); icon = transform.Find("Icon").GetComponent <Image>(); button = transform.GetComponent <Button>(); }