wangguan
2020-11-17 8daf2a93dc9837593ccb66e52d30e093ffb6a4ab
Assets/Scripts/TowerDefense/UI/HUD/PlacementTile.cs
@@ -63,7 +63,7 @@
        /// </summary>
        public Material selectMat;
        public ParticleSystem myPS;//可以升级的特效
        //public ParticleSystem myPS;//可以升级的特效
        /// <summary>
@@ -88,21 +88,21 @@
            }
        }
        public void SetParticleSystem(bool isOn)
        {
            if (isOn)
            {
                if (myPS.gameObject.activeSelf != isOn) myPS.gameObject.SetActive(isOn);
                myPS.Play();
        // public void SetParticleSystem(bool isOn)
        // {
        //     if (isOn)
        //     {
        //         if (myPS.gameObject.activeSelf != isOn) myPS.gameObject.SetActive(isOn);
        //         myPS.Play();
            }
            else
            {
                myPS.Stop();
                if (myPS.gameObject.activeSelf != isOn) myPS.gameObject.SetActive(isOn);
        //     }
        //     else
        //     {
        //         myPS.Stop();
        //         if (myPS.gameObject.activeSelf != isOn) myPS.gameObject.SetActive(isOn);
            }
        }
        //     }
        // }
        /// <summary>
        /// 设置是否可以放置