chenxin
2020-12-03 0bc89b87a59c3f1f394a54c0901868084463cf28
Assets/Scripts/TowerDefense/Input/EndlessTowerDefenseKeyboardMouseInput.cs
@@ -41,6 +41,7 @@
                // River Add for Mouse Start Drag & Draged.
                controller.startedDrag += OnStartDrag;
                controller.dragged += this.OnDrag;
                controller.pressed += OnPressed;
                controller.released += this.OnEndDrag;
            }
        }
@@ -62,6 +63,7 @@
            controller.startedDrag -= this.OnStartDrag;
            controller.dragged -= this.OnDrag;
            controller.pressed -= OnPressed;
            controller.released -= this.OnEndDrag;
        }
@@ -215,6 +217,11 @@
            }
        }
        private void OnPressed(PointerActionInfo pointer)
        {
            m_GameUI.OnPressed(pointer);
        }
        /// <summary>
        /// Select towers or position ghosts
        /// </summary>