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>
@@ -255,10 +262,7 @@
                    Debug.Log("新手不可以拖拽");
                    return;
                }
                else
                {
                    GuideCtrl.Ins.BeginDrag11_1();
                }
            }
            //按照鼠标键盘的修改
            // select towers
@@ -283,6 +287,10 @@
                    currentTimeScale = Time.timeScale;
                    Time.timeScale = 0.5f;
                }
                else
                {
                    GuideCtrl.Ins.BeginDrag5_1();
                }
            }
        }