这里怎么没人哟。。还想问个NGUI事件委托的问题呢~
ngui吧
全部回复
仅看楼主
level 2
smallsun8772 楼主
RT
2013年08月07日 03点08分 1
level 11
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分 2
3QQ
2013年11月07日 04点11分
1