using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems; public class Trigger : MonoBehaviour { EventTrigger eventTrigger; // Start is called before the first frame update void Start() { eventTrig
这篇博客源自我在泰课在线的回答.链接:http://www.taikr.com/group/1/thread/248 问:NGUI怎么模拟用代码模拟控制点击 答: 1. 这个问题问得好.因为在使用按键或摇杆控制时,会遇到这个问题. 2. 先上代码: using UnityEngine; using System.Collections; public class KeyBoardControl : MonoBehaviour { private UIButton uiButton; void S