wangguan
2020-12-10 d620049de0afa38688b7178d54b65e62ad2a61f0
Assets/Scripts/TowerDefense/UI/HUD/PlacementTile.cs
@@ -67,7 +67,7 @@
        public ParticleSystem myOpenPS;//购买后的特效
        public ParticleSystem myPutPS;//交换塔位置后的特效
        public ParticleSystem myDragSelectPS;//推拽时候移动到当前塔的特效
        public GameObject myDragSelectPS;//推拽时候移动到当前塔的特效
        /// <summary>
        /// 所在的格子坐标
@@ -171,6 +171,19 @@
            {
                canPlaceRenderer.enabled = isOn;
            }
            if (myDragSelectPS.activeSelf != isOn)
            {
                myDragSelectPS.SetActive(isOn);
            }
            // if (isOn)
            // {
            //     myDragSelectPS.Play();
            // }
            // else
            // {
            //     myDragSelectPS.Stop();
            // }
            if (isOn && towerName != "")
            {
                SetTowerVirtualshadow(towerName);