using UnityEngine;
using System.Collections;
public class TestClick : MonoBehaviour {
public GameObject[] itmes;
void Awake()
{
for (int i = 0 ; i < itmes.Length ; i++)
{
UIEventListener.Get(itmes[i]).onPress += CustPressed;
}
}
void CustPressed(GameObject go,bool pressed)
{
Debug.Log("Heelo");
}
}