level 2
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");
}
}
2013年11月05日 07点11分