Example #1
0
    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;
    }
Example #2
0
 void Update()
 {
     if (control == null)
     {
         getControlReference();
     }
     else
     {
         UpdateAttributes.updateAttributes(GetComponent <CardGOInstance>().card, transform);
     }
 }