wangguan
2020-11-04 2ae9edd5bfd8b8baabb8cd995485f9ade4faebc9
Assets/Scripts/TowerDefense/Input/EndlessTowerDefenseKeyboardMouseInput.cs
@@ -154,6 +154,9 @@
            m_GameUI.TryMoveGhost(pointer, false);
            this.isInDragState = true;
            AudioSourceManager.Ins.Play(AudioEnum.DragTower);
            //Debug.Log("开始拖拽");
        }
        protected override void OnDrag(PointerActionInfo pointer)
@@ -168,9 +171,15 @@
        {
            // EndDrag 只能放置相关的GhostTower.
            if (this.isInDragState)
            {
                AudioSourceManager.Ins.Play(AudioEnum.PutTower);
            }
                m_GameUI.onEndTowerDrag(pointer);
            this.isInDragState = false;
            //Debug.Log("结束拖拽");
        }
        /// <summary>