protected void Update() { skInput input = skInput.Instance; InputTouch[] touches = input.GetTouches(); int touchCount = 0; for (int i = 0; i < touches.Length; i++) { if (touches[i].!IsValid())
protected void Awake() { if (m_Instance != null) { skDebug.Assert(false, "重复创建skInput", gameObject); } m_Instance = this; DontDestroyOnLoad(this); m_InputTouchs = new InputTouch[MAX_TOUCH]; for (int i = 0; i < m_InputTouchs.Length; i++) { m_InputTouchs[i] = new InputTouch(); } }