public void OnPointerEnter(PointerEventData eventData) { GameObject go = GameObject.Find("targetCard"); go.GetComponent <Image>().sprite = Resources.Load <Sprite>("Cards/" + card.getID().ToString()); UpdateAttributes.updateAttributes(card, go.transform); Color c = go.GetComponent <Image>().color; c.a = 255; go.GetComponent <Image>().color = c; }
void Update() { if (control == null) { getControlReference(); } else { UpdateAttributes.updateAttributes(GetComponent <CardGOInstance>().card, transform); } }