| | |
| | | if (InputController.instanceExists) |
| | | { |
| | | InputController.instance.tapped += OnTap; |
| | | InputController.instance.pressed += OnPressed; |
| | | InputController.instance.startedDrag += OnStartDrag; |
| | | } |
| | | |
| | |
| | | if (InputController.instanceExists) |
| | | { |
| | | InputController.instance.tapped -= OnTap; |
| | | InputController.instance.pressed -= OnPressed; |
| | | InputController.instance.startedDrag -= OnStartDrag; |
| | | } |
| | | if (m_GameUI != null) |
| | |
| | | } |
| | | } |
| | | |
| | | private void OnPressed(PointerActionInfo pointer) |
| | | { |
| | | m_GameUI.OnPressed(pointer); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// Hide UI |
| | | /// </summary> |