public static TouchDisableTaskPool getInstance() { if (!instance) { GameObject go = new GameObject(typeof(TouchDisableTaskPool).ToString()); instance = go.AddComponent <TouchDisableTaskPool>(); instance.init(); } return(instance); }
private void onPointerEnter(BaseEventData arg0) { //Debug.Log("onPointerEnter ctl="+ touchInputController); TouchDisableTaskPool.getInstance().touchEnable.Value = false; }
private void onPointerExit(BaseEventData arg0) { TouchDisableTaskPool.getInstance().touchEnable.Value = true; }