using UnityEngine;
using System.Collections;
public class Test : MonoBehaviour
{
public GameObject button;
// Use this for initialization
void Start()
{
button = transform.FindChild("Button").gameObject;
UIEventListener.Get(button).onDoubleClick += OnDoubleClick;
}
// Update is called once per frame
void Update()
{
}
void OnDoubleClick(GameObject go)
{
Debug.Log(go.name+"OnDoubleClick");
}
}
using System.Collections;
public class Test : MonoBehaviour
{
public GameObject button;
// Use this for initialization
void Start()
{
button = transform.FindChild("Button").gameObject;
UIEventListener.Get(button).onDoubleClick += OnDoubleClick;
}
// Update is called once per frame
void Update()
{
}
void OnDoubleClick(GameObject go)
{
Debug.Log(go.name+"OnDoubleClick");
}
}










