Example #1
0
    void Awake()
    {
        uicontrol = FindObjectOfType<UIController>();
        exPanel = uicontrol.GetExPanel();
        image = GetComponent<Image>();
        icon = image.GetComponentsInChildren<Image>()[1];
        anim = GetComponent<Animator>();

        defaultImage = icon.sprite;
        defaultColor = image.color;
    }
 void Start()
 {
     uiControl = FindObjectOfType<UIController>();
     exPanel = uiControl.GetExPanel();
 }