wangguan
2020-12-05 a1aa87db6855d784b473d194789eb5e3ff9e085d
Assets/Scripts/TowerDefense/Input/EndlessTowerDefenseTouchInput.cs
@@ -86,6 +86,7 @@
            if (InputController.instanceExists)
            {
                InputController.instance.tapped += OnTap;
                InputController.instance.pressed += OnPressed;
                InputController.instance.startedDrag += OnStartDrag;
            }
@@ -115,6 +116,7 @@
            if (InputController.instanceExists)
            {
                InputController.instance.tapped -= OnTap;
                InputController.instance.pressed -= OnPressed;
                InputController.instance.startedDrag -= OnStartDrag;
            }
            if (m_GameUI != null)
@@ -122,6 +124,11 @@
                m_GameUI.stateChanged -= OnStateChanged;
                m_GameUI.ghostBecameValid -= OnGhostBecameValid;
            }
        }
        private void OnPressed(PointerActionInfo pointer)
        {
            m_GameUI.OnPressed(pointer);
        }
        /// <summary>
@@ -282,7 +289,7 @@
                }
                else
                {
                    GuideCtrl.Ins.BeginDrag11_1();
                    GuideCtrl.Ins.BeginDrag5_1();
                }
            }
        }