wangguan
2020-12-09 0690876fea4792f47b18a8e9d3133b8be0cfba7e
Assets/Scripts/TowerDefense/UI/HUD/SelectBuffIcon.cs
@@ -63,7 +63,15 @@
        public void OnClick()
        {
            AudioSourceManager.Ins.Play(AudioEnum.ChooseBuff);
            //判断是否是金钱
            if (isGold)
            {
                AudioSourceManager.Ins.Play(AudioEnum.Gold);
            }
            else
            {
                AudioSourceManager.Ins.Play(AudioEnum.UI);
            }
            if (OnSelectBuffCompleted != null)
                OnSelectBuffCompleted(Index);
@@ -106,6 +114,12 @@
            Name.color = EndlessBuffData.GetColorByRare(rare);
        }
        bool isGold;//是否是金币BUFF
        public void SetIsGold(bool isGold)
        {
            this.isGold = isGold;
        }
        /// <summary>
        /// 设置选中状态,做个缓动播放粒子特效