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>